Fix sleep lock service during Omarchy 4 upgrade

This commit is contained in:
Ryan Hughes
2026-06-06 19:31:51 -04:00
parent 4c17f6a675
commit d2c1544d78
3 changed files with 50 additions and 2 deletions
+16
View File
@@ -11,3 +11,19 @@ pass "bt-agent skips when bluetooth.service is inactive"
grep -Fx 'Restart=on-failure' "$service" >/dev/null
pass "bt-agent still restarts after runtime failures"
sleep_service="$ROOT/default/systemd/user/omarchy-sleep-lock.service"
grep -Fx 'ExecStart=/usr/bin/omarchy-system-sleep-monitor' "$sleep_service" >/dev/null
pass "sleep lock service uses the package-backed monitor path"
first_run_units="$ROOT/install/user/first-run/enable-user-units.sh"
grep -Fx 'systemctl --user daemon-reload' "$first_run_units" >/dev/null
grep -F 'omarchy-sleep-lock.service' "$first_run_units" >/dev/null
pass "first-run reloads and enables the sleep lock service"
upgrade_to_4="$ROOT/bin/omarchy-upgrade-to-4"
grep -F '6870b232a6c0474b59187882e6d25ae771bba735098bcbedef8a2b73b97e2b6a' "$upgrade_to_4" >/dev/null
grep -F 'ExecStart=%h/.local/share/omarchy/bin/omarchy-system-sleep-monitor' "$upgrade_to_4" >/dev/null
grep -F 'ExecStart=/usr/bin/omarchy-system-sleep-monitor' "$upgrade_to_4" >/dev/null
grep -F 'reset-failed omarchy-sleep-lock.service' "$upgrade_to_4" >/dev/null
pass "Omarchy 4 upgrade repairs the legacy sleep lock unit path"