/usr/share/maas/maas-proxy-common.sh is in maas-proxy 2.0.0~beta3+bzr4941-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | pre_start() {
if [ -x /usr/sbin/squid ]; then
SQUID=/usr/sbin/squid
elif [ -x /usr/sbin/squid3 ]; then
SQUID=/usr/sbin/squid3
else
echo "No squid binary found"
exit 1
fi
# ensure all cache dirs are there
install -d -o proxy -g proxy -m 750 /var/cache/maas-proxy/
install -d -o proxy -g proxy -m 750 /var/log/maas/proxy/
install -m 750 -o proxy -g proxy -d /var/spool/maas-proxy/
if [ -d /var/log/maas/proxy ]; then
chown -R proxy:proxy /var/log/maas/proxy
fi
if [ -f /var/lib/maas/maas-proxy.conf ]; then
if [ ! -d /var/cache/maas-proxy/00 ]; then
$SQUID -z -N -f /var/lib/maas/maas-proxy.conf
fi
fi
}
|