From: stephen mahood Date: Thu, 19 Mar 2015 18:34:27 +0000 (-0400) Subject: added libreplanet to the classes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=aa115edcb69512223f8421a2317760827c9d7212;p=fai-configs.git added libreplanet to the classes --- diff --git a/class/50-host-classes b/class/50-host-classes index 1ba7f98..d845e3a 100755 --- a/class/50-host-classes +++ b/class/50-host-classes @@ -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 index 0000000..6133284 --- /dev/null +++ b/scripts/LIBREPLANET/00_adduser.sh @@ -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