add restart message

This commit is contained in:
Roma 2022-09-18 16:43:08 +02:00
parent 41f2c45900
commit a9a7ce9bad

View File

@ -2,12 +2,14 @@ post_install() {
systemctl --global daemon-reload 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 enable
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global start 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() { post_upgrade() {
systemctl --global daemon-reload 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 enable
find /usr/lib/systemd/user/ -name "fix-*.timer" -type f -printf "%f\0" | xargs -0 systemctl --global restart 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() { pre_remove() {
@ -17,4 +19,5 @@ pre_remove() {
post_remove() { post_remove() {
systemctl --global daemon-reload systemctl --global daemon-reload
echo "A restart is required for the changes to take effect"
} }