r1867 - trunk/varnish-cache/debian

bahner at projects.linpro.no bahner at projects.linpro.no
Mon Aug 20 10:55:34 CEST 2007


Author: bahner
Date: 2007-08-20 10:55:34 +0200 (Mon, 20 Aug 2007)
New Revision: 1867

Added:
   trunk/varnish-cache/debian/varnish.postinst
Log:
Added creation of varnish user and group to postinst


Added: trunk/varnish-cache/debian/varnish.postinst
===================================================================
--- trunk/varnish-cache/debian/varnish.postinst	                        (rev 0)
+++ trunk/varnish-cache/debian/varnish.postinst	2007-08-20 08:55:34 UTC (rev 1867)
@@ -0,0 +1,28 @@
+# 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
+}
+
+




More information about the varnish-commit mailing list