add systemd services to run fixes

This commit is contained in:
2022-09-18 17:29:15 +02:00
parent 496dcd36f7
commit 8258eaf1d1
5 changed files with 57 additions and 2 deletions

14
fixes-package.install Normal file

@ -0,0 +1,14 @@
post_install() {
find /usr/lib/systemd/user/ -name "fix-*.service" -type f -printf "%f\0" | xargs -0 systemctl --global enable
echo "Warning: A restart is required to take effect"
}
post_upgrade() {
find /usr/lib/systemd/user/ -name "fix-*.service" -type f -printf "%f\0" | xargs -0 systemctl --global enable
echo "Warning: A restart is required to take effect"
}
pre_remove() {
find /usr/lib/systemd/user/ -name "fix-*.service" -type f -printf "%f\0" | xargs -0 systemctl --global disable
echo "Warning: A restart is required to take effect"
}