mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Prevent polkit error on reboot (fixes #2175)
This commit is contained in:
@@ -31,10 +31,10 @@ 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
|
||||
touch /var/tmp/omarchy-install-completed
|
||||
exit 0
|
||||
else
|
||||
reboot 2>/dev/null
|
||||
sudo reboot 2>/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user