sudo instead of sg
This commit is contained in:
+4
-3
@@ -30,7 +30,8 @@ function prepare_lxd {
|
||||
|
||||
realcommand="$MIAOU_BASEDIR/lib/install.sh"
|
||||
sg "$NEW_GROUP" -c "EMAIL=$valid_email $realcommand SESSION_RELOAD_REQUIRED $TARGET"
|
||||
sg "$NEW_GROUP" -c bash
|
||||
# sg "$NEW_GROUP" bash
|
||||
sudo su - "$(whoami)"
|
||||
kill -9 "$PPID"
|
||||
# no further processing because exec has been called!
|
||||
|
||||
@@ -479,8 +480,8 @@ else
|
||||
extra_dev_desktop
|
||||
|
||||
if [[ "$SESSION_RELOAD_REQUIRED" == true ]]; then
|
||||
echoinfo "successful session installation"
|
||||
echowarn "be aware: the current session has been reloaded, due to new group <$NEW_GROUP>. Next time you type \`exit\`, this session will emit a kill signal!"
|
||||
echoinfo "successful \`session\` installation"
|
||||
echowarn "current session has been reloaded, due to new group <$NEW_GROUP>! Next time you type \`exit\`, this session will emit a kill signal!"
|
||||
else
|
||||
echoinfo "successful installation"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user