diff --git a/install.sh b/install.sh index e808cb6..228d81f 100644 --- a/install.sh +++ b/install.sh @@ -8,8 +8,9 @@ which sudo >/dev/null 2>&1 || su -c "sed -i '/cdrom/d' /etc/apt/sources.list ; a if ! id | grep -q '(sudo)' then su -c "/usr/sbin/usermod -a -G sudo ${USER}" - # use sudo group without - exec sg sudo + # use sudo group and restart this script + sg sudo -c $0 + exit $? fi