Commit e743f7dd authored by Lars Bahner's avatar Lars Bahner

Added creation of varnish user and group to postinst


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1867 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 453e2111
# Automatically added by dh_installinit
if [ -x "/etc/init.d/varnish" ]; then
update-rc.d varnish defaults >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d varnish start || exit $?
else
/etc/init.d/varnish start || exit $?
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
varnish_setup_user() {
if ! id varnish > /dev/null 2>&1 ; then
adduser --system --no-create-home varnish 2>&1 > /dev/null || exit 78
fi
}
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