浏览代码

Check to see if conf file already exists before installing it. (#191)

* Update install.sh

* Add existing conf path.
pull/199/head
Ben Lachman 2 年前
committed by GitHub
父节点
当前提交
c21abf6994
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      install.sh

+ 3
- 1
install.sh 查看文件

@@ -9,7 +9,9 @@ install -m 644 log2ram.service /etc/systemd/system/log2ram.service
install -m 644 log2ram-daily.service /etc/systemd/system/log2ram-daily.service
install -m 644 log2ram-daily.timer /etc/systemd/system/log2ram-daily.timer
install -m 755 log2ram /usr/local/bin/log2ram
install -m 644 log2ram.conf /etc/log2ram.conf
if [ ! -f /etc/log2ram.conf ]; then
install -m 644 log2ram.conf /etc/log2ram.conf
fi
install -m 644 uninstall.sh /usr/local/bin/uninstall-log2ram.sh
systemctl enable log2ram.service log2ram-daily.timer



正在加载...
取消
保存