1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00
log2ram/debian/prerm

13 lines
386 B
Plaintext
Raw Normal View History

2019-12-19 16:51:27 +01:00
#!/usr/bin/env bash
2020-02-05 14:47:31 +01:00
case "$1" in
upgrade)
[ -d /run/systemd/system/ ] && systemctl stop log2ram.service log2ram-daily.timer
2020-02-05 14:47:31 +01:00
exit 0
;;
*)
[ -d /run/systemd/system/ ] && systemctl stop log2ram.service log2ram-daily.timer
[ -d /run/systemd/system/ ] && systemctl disable log2ram.service log2ram-daily.timer
2020-02-05 14:47:31 +01:00
exit 0
;;
esac