Browse Source

sudo instead of sg

main
pvincent 9 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" 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"
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 else
echoinfo "successful installation" echoinfo "successful installation"
fi fi

Loading…
Cancel
Save