added libreplanet to the classes
authorstephen mahood <mv@fsf.org>
Thu, 19 Mar 2015 18:34:27 +0000 (14:34 -0400)
committerstephen mahood <mv@fsf.org>
Thu, 19 Mar 2015 18:34:27 +0000 (14:34 -0400)
class/50-host-classes
scripts/LIBREPLANET/00_adduser.sh [new file with mode: 0644]

index 1ba7f98..d845e3a 100755 (executable)
@@ -46,10 +46,10 @@ case $HOSTNAME in
         nogrub=1
         ;;
     streamstation*)
-        echo "FAIBASE DHCPC SYSADMIN STREAM"
+        echo "FAIBASE DHCPC SYSADMIN STREAM LIBREPLANET"
         ;;
     freetop*)
-        echo "FAIBASE DHCPC SYSADMIN XORG TRISQUEL WORKSTATION"
+        echo "FAIBASE DHCPC SYSADMIN XORG TRISQUEL WORKSTATION LIBREPLANET"
         ;;
 
     *)  
diff --git a/scripts/LIBREPLANET/00_adduser.sh b/scripts/LIBREPLANET/00_adduser.sh
new file mode 100644 (file)
index 0000000..6133284
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash 
+# add a demo user account
+if ! $ROOTCMD getent passwd libreplanet ; then
+    $ROOTCMD adduser --gecos "LibrePlanet Conference User" libreplanet
+#    echo "demo:$ROOTPW" | $ROOTCMD chpasswd --encrypted
+    $ROOTCMD usermod -p "$ROOTPW" libreplanet
+fi