From aa115edcb69512223f8421a2317760827c9d7212 Mon Sep 17 00:00:00 2001 From: stephen mahood Date: Thu, 19 Mar 2015 14:34:27 -0400 Subject: [PATCH 1/1] added libreplanet to the classes --- class/50-host-classes | 4 ++-- scripts/LIBREPLANET/00_adduser.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 scripts/LIBREPLANET/00_adduser.sh 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 -- 1.9.1