瀏覽代碼

Suggestion from #50

Check if systemd log2ram service is running before the install;
pull/49/head
azlux 6 年之前
父節點
當前提交
2d7951a666
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      install.sh

+ 2
- 2
install.sh 查看文件

@@ -1,7 +1,7 @@
#!/usr/bin/env sh

[ -d /var/hdd.log ] && echo "ERROR: log2ram still installed. Uninstall first!"
[ -d /var/hdd.log ] && exit 1
systemctl -q is-active log2ram && { echo "ERROR: log2ram service is still running. Please run \"sudo service log2ram stop\" to stop it."; exit 1; }

if [ "$(id -u)" -eq 0 ]
then


Loading…
取消
儲存