2022-09-15 23:14:20 +00:00
|
|
|
post_install() {
|
2022-09-18 13:41:08 +00:00
|
|
|
systemctl --global daemon-reload
|
2022-09-18 13:28:39 +00:00
|
|
|
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global enable
|
|
|
|
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global start
|
2022-09-18 14:43:08 +00:00
|
|
|
echo "A restart is required for the changes to take effect"
|
2022-09-18 12:30:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2022-09-18 13:41:08 +00:00
|
|
|
systemctl --global daemon-reload
|
2022-09-18 13:28:39 +00:00
|
|
|
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global enable
|
|
|
|
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global restart
|
2022-09-18 14:43:08 +00:00
|
|
|
echo "A restart is required for the changes to take effect"
|
2022-09-15 23:14:20 +00:00
|
|
|
}
|
2022-09-18 13:41:08 +00:00
|
|
|
|
|
|
|
pre_remove() {
|
|
|
|
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global stop
|
|
|
|
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global disable
|
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
systemctl --global daemon-reload
|
2022-09-18 14:43:08 +00:00
|
|
|
echo "A restart is required for the changes to take effect"
|
2022-09-18 13:41:08 +00:00
|
|
|
}
|