Fix cleaning up the first-run sudo rm

This commit is contained in:
David Heinemeier Hansson
2026-05-25 22:50:24 +02:00
parent e1075e3cd7
commit 9fb52fa37a
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ if [[ -f $FIRST_RUN_MODE ]]; then
bash "$OMARCHY_PATH/install/first-run/gdk-scale.sh"
bash "$OMARCHY_PATH/install/first-run/gtk-primary-paste.sh"
omarchy-hook-install post-update "$OMARCHY_PATH/install/first-run/install-voxtype.hook"
sudo rm -f /etc/sudoers.d/first-run
sudo /bin/rm -f /etc/sudoers.d/first-run
bash "$OMARCHY_PATH/install/first-run/welcome.sh"
bash "$OMARCHY_PATH/install/first-run/wifi.sh"
+1 -3
View File
@@ -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
+1 -1
View File
@@ -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