1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00

Add uninstaller into /usr

Suggestion from #46
This commit is contained in:
azlux 2018-02-15 22:39:25 +01:00
parent 1ed58f986c
commit 9c774dcbb7
3 changed files with 6 additions and 5 deletions

View File

@ -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
```

View File

@ -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

View File

@ -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)"