mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
rollback #83
This commit is contained in:
parent
b99c49fb8e
commit
853ae88d3f
6
debian/postinst
vendored
6
debian/postinst
vendored
@ -1,6 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
systemctl enable log2ram
|
systemctl enable log2ram
|
||||||
|
|
||||||
|
if [ "$1" == "configure" ]; then
|
||||||
echo "##### Reboot to activate log2ram #####"
|
echo "##### Reboot to activate log2ram #####"
|
||||||
echo "##### edit /etc/log2ram.conf to configure options ####"
|
echo "##### edit /etc/log2ram.conf to configure options ####"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
3
debian/preinst
vendored
3
debian/preinst
vendored
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
systemctl -q is-active log2ram && systemctl stop log2ram
|
systemctl -q is-active log2ram && systemctl stop log2ram
|
||||||
rm -rf /var/hdd.log
|
rm -rf /var/hdd.log
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
12
debian/prerm
vendored
12
debian/prerm
vendored
@ -1,2 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
systemctl stop log2ram.service
|
case "$1" in
|
||||||
|
upgrade)
|
||||||
|
[ -d /run/systemd/system/ ] && systemctl stop log2ram
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
[ -d /run/systemd/system/ ] && systemctl stop log2ram
|
||||||
|
[ -d /run/systemd/system/ ] && systemctl disable log2ram
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
@ -17,4 +17,3 @@ RemainAfterExit=yes
|
|||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sysinit.target
|
WantedBy=sysinit.target
|
||||||
RequiredBy=systemd-journald.service
|
|
||||||
|
Loading…
Reference in New Issue
Block a user