From 700efabaa4a7d7b652a0cca649e40855a632b728 Mon Sep 17 00:00:00 2001 From: ssm Date: Fri, 5 Oct 2007 09:15:09 +0000 Subject: [PATCH] Fix ticket #166, debian package issues git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2078 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/debian/varnish.postinst | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/varnish-cache/debian/varnish.postinst b/varnish-cache/debian/varnish.postinst index bf30a8b3..135d9e64 100644 --- a/varnish-cache/debian/varnish.postinst +++ b/varnish-cache/debian/varnish.postinst @@ -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 -- 2.39.5