install.sh aktualisiert

This commit is contained in:
olli 2023-08-22 14:53:14 +02:00
parent 3d9b0b72d3
commit 5588f324e2

View File

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