From e4c54ef797c1758b1e87799b899fb5f0d646f3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Schl=C3=BCter?= Date: Wed, 24 Jan 2018 11:37:58 +0100 Subject: itzks-installscript: Made alternate way to add locadm to activated way after sucessfull testing. --- install-itzks-workstation | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'install-itzks-workstation') diff --git a/install-itzks-workstation b/install-itzks-workstation index aa91343..adce7c4 100644 --- a/install-itzks-workstation +++ b/install-itzks-workstation @@ -2,17 +2,17 @@ # script for installing a Debian Edu Workstation with ITZkS modifications # Add user locadm as "local adminstrator" and add this user to sudoer-group -adduser --gecos "Local Administrator" locadm -adduser locadm sudo - -# Alternative Handhabung von "locadm"-Anlegen -# if [ -z $(getent passwd locadm) ]; -# then -# : -# else -# adduser --gecos "Local Administrator" locadm -# adduser locadm sudo -# fi +# adduser --gecos "Local Administrator" locadm +# adduser locadm sudo + +# Alternate script: Only add user locadm if not already there +if [ -z $(getent passwd locadm) ]; + then + : + else + adduser --gecos "Local Administrator" locadm + adduser locadm sudo +fi # Enlarge root-fs -- cgit v1.2.3