Add sudoers to fix polkit error

This commit is contained in:
Ryan Hughes
2025-10-08 18:06:22 -04:00
parent d3f70a0c22
commit 0e1f585166
5 changed files with 18 additions and 4 deletions

View File

@@ -31,10 +31,14 @@ if gum confirm --padding "0 0 0 $((PADDING_LEFT + 32))" --show-help=false --defa
# Clear screen to hide any shutdown messages
clear
# Use systemctl if available, otherwise fallback to reboot command
if command -v systemctl &>/dev/null; then
systemctl reboot --no-wall 2>/dev/null
if [[ -n "${OMARCHY_CHROOT_INSTALL:-}" ]]; then
<<<<<<< Updated upstream
touch /tmp/omarchy-reboot-requested
=======
touch /var/tmp/omarchy-reboot-requested
>>>>>>> Stashed changes
exit 0
else
reboot 2>/dev/null
sudo reboot 2>/dev/null
fi
fi