sudo instead of sg
This commit is contained in:
+4
-3
@@ -30,7 +30,8 @@ function prepare_lxd {
|
|||||||
|
|
||||||
realcommand="$MIAOU_BASEDIR/lib/install.sh"
|
realcommand="$MIAOU_BASEDIR/lib/install.sh"
|
||||||
sg "$NEW_GROUP" -c "EMAIL=$valid_email $realcommand SESSION_RELOAD_REQUIRED $TARGET"
|
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"
|
kill -9 "$PPID"
|
||||||
# no further processing because exec has been called!
|
# no further processing because exec has been called!
|
||||||
|
|
||||||
@@ -479,8 +480,8 @@ else
|
|||||||
extra_dev_desktop
|
extra_dev_desktop
|
||||||
|
|
||||||
if [[ "$SESSION_RELOAD_REQUIRED" == true ]]; then
|
if [[ "$SESSION_RELOAD_REQUIRED" == true ]]; then
|
||||||
echoinfo "successful session installation"
|
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!"
|
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
|
else
|
||||||
echoinfo "successful installation"
|
echoinfo "successful installation"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user