瀏覽代碼

rollback #83

tags/1.4.4
Azlux 4 年之前
父節點
當前提交
853ae88d3f
共有 4 個檔案被更改,包括 21 行新增5 行删除
  1. +8
    -2
      debian/postinst
  2. +2
    -1
      debian/preinst
  3. +11
    -1
      debian/prerm
  4. +0
    -1
      log2ram.service

+ 8
- 2
debian/postinst 查看文件

@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail

systemctl daemon-reload
systemctl enable log2ram
echo "##### Reboot to activate log2ram #####"
echo "##### edit /etc/log2ram.conf to configure options ####"

if [ "$1" == "configure" ]; then
echo "##### Reboot to activate log2ram #####"
echo "##### edit /etc/log2ram.conf to configure options ####"
fi

exit 0

+ 2
- 1
debian/preinst 查看文件

@@ -1,5 +1,6 @@
#!/bin/bash
set -euo pipefail

systemctl -q is-active log2ram && systemctl stop log2ram
rm -rf /var/hdd.log

exit 0

+ 11
- 1
debian/prerm 查看文件

@@ -1,2 +1,12 @@
#!/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

+ 0
- 1
log2ram.service 查看文件

@@ -17,4 +17,3 @@ RemainAfterExit=yes

[Install]
WantedBy=sysinit.target
RequiredBy=systemd-journald.service

Loading…
取消
儲存