Update adduser.sh

This commit is contained in:
Daniel Hansson 2018-08-05 17:16:33 +02:00 committed by GitHub
parent a315597991
commit 2cabe9ff2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ true
# Check for errors + debug code and abort if something isn't right
# 1 = ON
# 0 = OFF
DEBUG=0
DEBUG=1
debug_mode
if [[ $UNIXUSER != "ncadmin" ]]
@ -34,6 +34,6 @@ The preferred user is 'ncadmin'."
do
sudo passwd "$NEWUSER" && break
done
sudo -u "$NEWUSER" sudo bash "$2"
sudo -u "$NEWUSER" sudo bash "$1"
fi
fi