[Fai-commit] r6513 - trunk/examples/simple/scripts/CENTOS
Thomas Lange
lange at alioth.debian.org
Thu Apr 28 09:19:55 UTC 2011
Author: lange
Date: 2011-04-28 09:19:47 +0000 (Thu, 28 Apr 2011)
New Revision: 6513
Added:
trunk/examples/simple/scripts/CENTOS/80-misc
Log:
add user demo
Added: trunk/examples/simple/scripts/CENTOS/80-misc
===================================================================
--- trunk/examples/simple/scripts/CENTOS/80-misc (rev 0)
+++ trunk/examples/simple/scripts/CENTOS/80-misc 2011-04-28 09:19:47 UTC (rev 6513)
@@ -0,0 +1,13 @@
+#! /bin/bash
+
+error=0 ; trap "error=$((error|1))" ERR
+
+# add a demo user account
+if ! $ROOTCMD getent passwd demo ; then
+ $ROOTCMD adduser -c "fai demo user" demo
+ # echo "demo:$ROOTPW" | $ROOTCMD chpasswd --encrypted
+ $ROOTCMD usermod -p "$ROOTPW" demo
+fi
+
+exit $error
+
Property changes on: trunk/examples/simple/scripts/CENTOS/80-misc
___________________________________________________________________
Added: svn:executable
+ *
More information about the Fai-commit
mailing list