Fix cleaning up the first-run sudo rm
This commit is contained in:
@@ -1,3 +1 @@
|
||||
if sudo test -f /etc/sudoers.d/99-omarchy-installer-reboot; then
|
||||
sudo rm -f /etc/sudoers.d/99-omarchy-installer-reboot
|
||||
fi
|
||||
sudo /bin/rm -f /etc/sudoers.d/99-omarchy-installer-reboot
|
||||
|
||||
@@ -4,7 +4,7 @@ touch ~/.local/state/omarchy/first-run.mode
|
||||
|
||||
# Setup sudo-less access for first-run
|
||||
sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
|
||||
Cmnd_Alias FIRST_RUN_CLEANUP = /bin/rm -f /etc/sudoers.d/first-run
|
||||
Cmnd_Alias FIRST_RUN_CLEANUP = /bin/rm -f /etc/sudoers.d/first-run, /bin/rm -f /etc/sudoers.d/99-omarchy-installer-reboot
|
||||
Cmnd_Alias SYMLINK_RESOLVED = /usr/bin/ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
|
||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/systemctl
|
||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
|
||||
|
||||
Reference in New Issue
Block a user