[Pkg-sysvinit-commits] r426 - sysvinit/trunk/debian/initscripts
Thomas Hood
jdthood-guest at costa.debian.org
Tue Dec 20 17:30:11 UTC 2005
Author: jdthood-guest
Date: 2005-12-20 17:30:11 +0000 (Tue, 20 Dec 2005)
New Revision: 426
Modified:
sysvinit/trunk/debian/initscripts/postinst
Log:
Keep nologin flag file in /var/lib/
Modified: sysvinit/trunk/debian/initscripts/postinst
===================================================================
--- sysvinit/trunk/debian/initscripts/postinst 2005-12-20 16:51:26 UTC (rev 425)
+++ sysvinit/trunk/debian/initscripts/postinst 2005-12-20 17:30:11 UTC (rev 426)
@@ -216,9 +216,13 @@
done
#
-# Set up nologin symlink
+# Set up nologin symlink so that dynamic-login-disabling will work
#
-[ ! -L /etc/nologin ] && [ ! -e /etc/nologin ] && ln -s /var/run/nologin /etc/nologin
+if [ ! -L /etc/nologin ] && [ ! -e /etc/nologin ]
+then
+ rm -f /var/lib/nologin
+ ln -s /var/lib/nologin /etc/nologin
+fi
#
# Set up motd stuff
More information about the Pkg-sysvinit-commits
mailing list