Update after.sh

This commit is contained in:
Baltrust 2026-10-14 17:10:13 +03:00
parent 0abf7981fc
commit 81cf95a239

View file

@ -189,7 +189,8 @@ cd "$OLDPWD" && rm -rf grub2
EOF
# Restore password requirement after successful installation
rm -f "$SUDOERS_FILE"
printf '%s ALL=(ALL) ALL\n' "$USERNAME" > "$SUDOERS_FILE"
chmod 440 "$SUDOERS_FILE"
visudo -c
# Remove the script from root folder after successfull installation