From: bahner Date: Mon, 20 Aug 2007 09:40:54 +0000 (+0000) Subject: Fixed silly race X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f4639d0cf00b9552fc4b8d77bfa228ee42b569e;p=varnish Fixed silly race git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1875 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/debian/varnish.postinst b/varnish-cache/debian/varnish.postinst index 6ec185b3..ffb9f8b4 100644 --- a/varnish-cache/debian/varnish.postinst +++ b/varnish-cache/debian/varnish.postinst @@ -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