[D-community-commits] r181 - in trunk/fai-config-dir: files/etc/motd files/usr files/usr/local files/usr/local/sbin files/usr/local/sbin/softupdate scripts/ADMINGROUP scripts/DEFAULT

holger at alioth.debian.org holger at alioth.debian.org
Sat Dec 22 15:56:45 UTC 2007


Author: holger
Date: 2007-12-22 15:56:45 +0000 (Sat, 22 Dec 2007)
New Revision: 181

Added:
   trunk/fai-config-dir/files/usr/local/
   trunk/fai-config-dir/files/usr/local/sbin/
   trunk/fai-config-dir/files/usr/local/sbin/softupdate/
   trunk/fai-config-dir/files/usr/local/sbin/softupdate/DEFAULT
   trunk/fai-config-dir/scripts/DEFAULT/99-softupdate-sh
Modified:
   trunk/fai-config-dir/files/etc/motd/DEFAULT
   trunk/fai-config-dir/scripts/ADMINGROUP/30-sudoers
Log:
softupdate command to ease typing

Modified: trunk/fai-config-dir/files/etc/motd/DEFAULT
===================================================================
--- trunk/fai-config-dir/files/etc/motd/DEFAULT	2007-12-22 15:25:11 UTC (rev 180)
+++ trunk/fai-config-dir/files/etc/motd/DEFAULT	2007-12-22 15:56:45 UTC (rev 181)
@@ -16,7 +16,7 @@
 
 No manual configuration on the machine please - put your changes into
 svn+ssh://svn.debian.org/svn/d-community/trunk/fai-config-dir and run
-"sudo fai -N softupdate".
+"sudo softupdate".
 It's important that the output of that command ends in "Congratulations! 
 No errors found in log files" in the last but four line of the output."
 

Added: trunk/fai-config-dir/files/usr/local/sbin/softupdate/DEFAULT
===================================================================
--- trunk/fai-config-dir/files/usr/local/sbin/softupdate/DEFAULT	                        (rev 0)
+++ trunk/fai-config-dir/files/usr/local/sbin/softupdate/DEFAULT	2007-12-22 15:56:45 UTC (rev 181)
@@ -0,0 +1,19 @@
+#/bin/sh
+
+#
+#        (c) 2006 Holger Levsen         holger at layer-acht.org
+#        GPL2 licenced
+#
+#
+
+if [ $(id -u) != 0 ] ; then
+	echo you must run this as root
+	exit 1
+fi
+
+export LANG=C
+fai -N softupdate
+echo
+
+[ -f /var/log/fai/localhost/last/error.log ] && cat /var/log/fai/localhost/last/error.log
+


Property changes on: trunk/fai-config-dir/files/usr/local/sbin/softupdate/DEFAULT
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/fai-config-dir/scripts/ADMINGROUP/30-sudoers
===================================================================
--- trunk/fai-config-dir/scripts/ADMINGROUP/30-sudoers	2007-12-22 15:25:11 UTC (rev 180)
+++ trunk/fai-config-dir/scripts/ADMINGROUP/30-sudoers	2007-12-22 15:56:45 UTC (rev 181)
@@ -12,22 +12,22 @@
    any::
         ### holger
 	{ ${target}/etc/sudoers
-          AppendIfNoSuchLine "holger ALL= NOPASSWD: /usr/sbin/fai -N softupdate"
+          AppendIfNoSuchLine "holger ALL= NOPASSWD: /usr/local/sbin/softupdate"
 	}
 	### madduck
 	{ ${target}/etc/sudoers
-          AppendIfNoSuchLine "madduck ALL= NOPASSWD: /usr/sbin/fai -N softupdate"
+          AppendIfNoSuchLine "madduck ALL= NOPASSWD: /usr/local/sbin/softupdate"
 	}
 	### luk
 	{ ${target}/etc/sudoers
-          AppendIfNoSuchLine "luk ALL= NOPASSWD: /usr/sbin/fai -N softupdate"
+          AppendIfNoSuchLine "luk ALL= NOPASSWD: /usr/local/sbin/softupdate"
 	}
 	### beuno
 	{ ${target}/etc/sudoers
-          AppendIfNoSuchLine "beuno ALL= NOPASSWD: /usr/sbin/fai -N softupdate"
+          AppendIfNoSuchLine "beuno ALL= NOPASSWD: /usr/local/sbin/softupdate"
 	}
 	### andreas
 	{ ${target}/etc/sudoers
-          AppendIfNoSuchLine "andreas ALL= NOPASSWD: /usr/sbin/fai -N softupdate"
+          AppendIfNoSuchLine "andreas ALL= NOPASSWD: /usr/local/sbin/softupdate"
 	}
 

Added: trunk/fai-config-dir/scripts/DEFAULT/99-softupdate-sh
===================================================================
--- trunk/fai-config-dir/scripts/DEFAULT/99-softupdate-sh	                        (rev 0)
+++ trunk/fai-config-dir/scripts/DEFAULT/99-softupdate-sh	2007-12-22 15:56:45 UTC (rev 181)
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+#
+#        (c) 2006 Holger Levsen         holger at layer-acht.org
+#        GPL2 licenced
+#
+
+fcopy -i -m root,root,755 /usr/local/sbin/softupdate
+


Property changes on: trunk/fai-config-dir/scripts/DEFAULT/99-softupdate-sh
___________________________________________________________________
Name: svn:executable
   + *




More information about the D-community-commits mailing list