Fix paths for first-run permissions removal

This commit is contained in:
David Heinemeier Hansson 2025-08-25 09:20:04 +02:00
parent 066ec7ffff
commit 1ec6ba61dc
2 changed files with 2 additions and 2 deletions

View File

@ -8,5 +8,5 @@ if [[ -f "$FIRST_RUN_MODE" ]]; then
rm -f "$FIRST_RUN_MODE"
$OMARCHY_PATH/install/first-run/battery-monitor.sh
$OMARCHY_PATH/install/first-run/firewall.sh
sudo rm -f /etc/sudoers.d/first-run &>/dev/null
sudo rm -f /etc/sudoers.d/first-run
fi

View File

@ -8,6 +8,6 @@ touch ~/.local/state/omarchy/first-run.mode
sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker
$USER ALL=(ALL) NOPASSWD: /bin/rm -f /home/$USER/.local/state/omarchy/first-run.mode
$USER ALL=(ALL) NOPASSWD: /bin/rm -f /etc/sudoers.d/first-run
EOF
sudo chmod 440 /etc/sudoers.d/first-run