give permission for user to launch as root

pull/2/head
necro-nemesis 5 years ago
parent 01a6120ce7
commit 1f723ec59b

@ -16,6 +16,7 @@ if [ $(id -u) -eq 0 ]; then
else
pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
useradd -m -p $pass $username
sudo usermod -a -G root $username
[ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!"
fi
else
@ -123,6 +124,7 @@ function install_complete() {
fi
install_log "SNApp Launching"
echo -n "SNApp Launching"
su $username
sudo $snapp_dir/lokipython.sh
exit 0 || install_error "Unable to exit"
}

Loading…
Cancel
Save