From 1f723ec59ba3a67f2809d443fbbda72339ac570b Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sat, 4 Jan 2020 14:04:17 -0500 Subject: [PATCH] give permission for user to launch as root --- installers/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installers/common.sh b/installers/common.sh index c7f54ae..5b07577 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -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" }