Browse Source

sudo instead of sg

main
pvincent 8 months ago
parent
commit
701db3c3e8
  1. 7
      lib/install.sh

7
lib/install.sh

@ -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

Loading…
Cancel
Save