Parcourir la source

Add uninstaller into /usr

Suggestion from #46
pull/49/head
azlux il y a 6 ans
Parent
révision
9c774dcbb7
3 fichiers modifiés avec 6 ajouts et 5 suppressions
  1. +3
    -4
      README.md
  2. +1
    -0
      install.sh
  3. +2
    -1
      uninstall.sh

+ 3
- 4
README.md Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

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


Chargement…
Annuler
Enregistrer