24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
post_install() {
|
|
systemctl --global daemon-reload
|
|
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
|
|
echo "A restart is required for the changes to take effect"
|
|
}
|
|
|
|
post_upgrade() {
|
|
systemctl --global daemon-reload
|
|
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
|
|
echo "A restart is required for the changes to take effect"
|
|
}
|
|
|
|
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
|
|
echo "A restart is required for the changes to take effect"
|
|
}
|