Improve update and migration flow
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Type = Package
|
||||
Target = *
|
||||
|
||||
[Action]
|
||||
Description = Checking Omarchy update entrypoint...
|
||||
When = PreTransaction
|
||||
Depends = omarchy
|
||||
Exec = /usr/bin/omarchy-update-pacman-guard
|
||||
AbortOnFail
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Watch for Omarchy user migrations
|
||||
|
||||
[Path]
|
||||
PathExistsGlob=/usr/share/omarchy/migrations/user/*.sh
|
||||
PathModified=/usr/share/omarchy/migrations/user
|
||||
Unit=omarchy-update-user-notify.service
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Notify about pending Omarchy user migrations
|
||||
ConditionPathExistsGlob=/usr/share/omarchy/migrations/user/*.sh
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/omarchy-migrate-notify
|
||||
Reference in New Issue
Block a user