]> err.no Git - varnish/commitdiff
Fix ticket #166, debian package issues
authorssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 5 Oct 2007 09:15:09 +0000 (09:15 +0000)
committerssm <ssm@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 5 Oct 2007 09:15:09 +0000 (09:15 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2078 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/debian/varnish.postinst

index bf30a8b33acd63ded36f7de4e852d50451b5dcb5..135d9e6414727f2357c737f68e2919743bdd7c75 100644 (file)
@@ -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