Fix paths for first-run permissions removal
This commit is contained in:
parent
066ec7ffff
commit
1ec6ba61dc
@ -8,5 +8,5 @@ if [[ -f "$FIRST_RUN_MODE" ]]; then
|
|||||||
rm -f "$FIRST_RUN_MODE"
|
rm -f "$FIRST_RUN_MODE"
|
||||||
$OMARCHY_PATH/install/first-run/battery-monitor.sh
|
$OMARCHY_PATH/install/first-run/battery-monitor.sh
|
||||||
$OMARCHY_PATH/install/first-run/firewall.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
|
fi
|
||||||
|
@ -8,6 +8,6 @@ touch ~/.local/state/omarchy/first-run.mode
|
|||||||
sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
|
sudo tee /etc/sudoers.d/first-run >/dev/null <<EOF
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
|
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/ufw-docker
|
$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
|
EOF
|
||||||
sudo chmod 440 /etc/sudoers.d/first-run
|
sudo chmod 440 /etc/sudoers.d/first-run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user