diff options
author | Benjamin Schlüter <bschlueter@posteo.de> | 2018-01-24 11:37:58 +0100 |
---|---|---|
committer | Benjamin Schlüter <bschlueter@posteo.de> | 2018-01-24 11:37:58 +0100 |
commit | e4c54ef797c1758b1e87799b899fb5f0d646f3aa (patch) | |
tree | f0e22883b2f4a32c1b210391024620a0001dd7b5 /install-itzks-workstation | |
parent | 4040b8a37230bee3c9b50def0ad3a0fe809488b2 (diff) | |
download | itzks-install-script-e4c54ef797c1758b1e87799b899fb5f0d646f3aa.tar.gz itzks-install-script-e4c54ef797c1758b1e87799b899fb5f0d646f3aa.tar.bz2 itzks-install-script-e4c54ef797c1758b1e87799b899fb5f0d646f3aa.zip |
itzks-installscript: Made alternate way to add locadm to activated way after sucessfull testing.
Diffstat (limited to 'install-itzks-workstation')
-rw-r--r-- | install-itzks-workstation | 22 |
1 files changed, 11 insertions, 11 deletions
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 |