mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-29 13:09:24 +00:00
/etc/sudoers.d is not accessible without sudo
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ ! -f /etc/sudoers.d/omarchy-tzupdate ]]; then
|
if ! command -v tzupdate &>/dev/null; then
|
||||||
yay -S --noconfirm --needed tzupdate
|
yay -S --noconfirm --needed tzupdate
|
||||||
sudo tee /etc/sudoers.d/omarchy-tzupdate >/dev/null <<EOF
|
sudo tee /etc/sudoers.d/omarchy-tzupdate >/dev/null <<EOF
|
||||||
%wheel ALL=(root) NOPASSWD: /usr/bin/tzupdate, /usr/bin/timedatectl
|
%wheel ALL=(root) NOPASSWD: /usr/bin/tzupdate, /usr/bin/timedatectl
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
echo "Allow updating of timezone by right-clicking on the clock (or running omarchy-cmd-tzupdate)"
|
echo "Allow updating of timezone by right-clicking on the clock (or running omarchy-cmd-tzupdate)"
|
||||||
if [[ ! -f /etc/sudoers.d/omarchy-tzupdate ]]; then
|
if ! command -v tzupdate &>/dev/null; then
|
||||||
bash ~/.local/share/omarchy/install/config/timezones.sh
|
bash ~/.local/share/omarchy/install/config/timezones.sh
|
||||||
omarchy-refresh-waybar
|
omarchy-refresh-waybar
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user