浏览代码

Add uninstaller into /usr

Suggestion from #46
pull/49/head
azlux 6 年前
父节点
当前提交
9c774dcbb7
共有 3 个文件被更改,包括 6 次插入5 次删除
  1. +3
    -4
      README.md
  2. +1
    -0
      install.sh
  3. +2
    -1
      uninstall.sh

+ 3
- 4
README.md 查看文件

@@ -12,7 +12,8 @@ Log2Ram is based on transient log for Systemd here : [A transient /var/log](http
curl -Lo log2ram.tar.gz https://github.com/azlux/log2ram/archive/master.tar.gz
tar xf log2ram.tar.gz
cd log2ram-master
chmod +x install.sh && sudo ./install.sh
chmod +x log2ram-master/install.sh && sudo log2ram-master/install.sh
rm -r log2ram-master

**REBOOT** before installing anything else (for example apache2)

@@ -51,7 +52,5 @@ The log for log2ram will be written at: `/var/log/log2ram.log`
## Uninstall :(
(Because sometime we need it)
```
cd log2ram
chmod +x uninstall.sh
sudo ./uninstall.sh
chmod +x /usr/local/bin/uninstall-log2ram.sh && sudo /usr/local/bin/uninstall-log2ram.sh
```

+ 1
- 0
install.sh 查看文件

@@ -16,6 +16,7 @@ then
chmod +x /etc/cron.hourly/log2ram
cp log2ram.logrotate /etc/logrotate.d/log2ram
chmod 644 /etc/logrotate.d/log2ram
cp uninstall.sh /usr/local/bin/uninstall-log2ram.sh

# Remove a previous log2ram version
if [ -d /var/log.hdd ]; then


+ 2
- 1
uninstall.sh 查看文件

@@ -13,7 +13,8 @@ then
if [ -d /var/hdd.log ]; then
rm -r /var/hdd.log
fi

echo "Log2Ram is uninstalled, removing the uninstaller in progress"
rm /usr/local/bin/uninstall-log2ram.sh
echo "##### Reboot isn't needed #####"
else
echo "You need to be ROOT (sudo can be used)"


正在加载...
取消
保存