Fix ticket #166, debian package issues

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2078 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent dd8c93d6
......@@ -5,8 +5,12 @@ varnish_setup_user() {
adduser --system --no-create-home --group varnish 2>&1 > /dev/null || exit 78
fi
}
varnish_create_storagedir() {
install -o varnish -g varnish -d /var/lib/varnish/$(uname -n) || exit 78
}
varnish_setup_user
varnish_create_storagedir
#DEBHELPER#
# Automatically added by dh_installinit
......@@ -19,13 +23,3 @@ if [ -x "/etc/init.d/varnish" ]; then
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/varnishlog" ]; then
update-rc.d varnishlog defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d varnishlog start || exit $?
else
/etc/init.d/varnishlog start || exit $?
fi
fi
# End automatically added section
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment