]> err.no Git - varnish/commitdiff
Fixed silly race
authorbahner <bahner@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 09:40:54 +0000 (09:40 +0000)
committerbahner <bahner@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 09:40:54 +0000 (09:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1875 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/debian/varnish.postinst

index 6ec185b3ee2817c00a28202f8a7830e96c98b2c8..ffb9f8b4da7518b9ae4b098ec22fa35d6c05acc3 100644 (file)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+varnish_setup_user() {
+        if ! id varnish > /dev/null 2>&1 ; then
+                adduser --system --no-create-home varnish 2>&1 > /dev/null || exit 78
+        fi
+}
+
+varnish_setup_user
 
 # Automatically added by dh_installinit
 if [ -x "/etc/init.d/varnish" ]; then
@@ -21,11 +28,3 @@ if [ -x "/etc/init.d/varnishlog" ]; then
        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
-}
-
-varnish_setup_user