Explorar el Código

Uninstall script

As asked into #23 #21
pull/27/head
azlux hace 7 años
padre
commit
18c009a6dd
Se han modificado 2 ficheros con 23 adiciones y 0 borrados
  1. +9
    -0
      README.md
  2. +14
    -0
      uninstall.sh

+ 9
- 0
README.md Ver fichero

@@ -39,3 +39,12 @@ If you have issue with apache2 , you can try to add `apache2.service` next to ot
The log for log2ram will be write here : `/var/log.hdd/log2ram.log`

###### Now, muffins for everyone !


## Uninstall :(
(Because sometime we need it)
```
cd log2ram
chmod +x uninstall.sh
sudo ./uninstall.sh
```

+ 14
- 0
uninstall.sh Ver fichero

@@ -0,0 +1,14 @@
#!/bin/sh

if [ `id -u` -eq 0 ]
then
service log2ram stop
systemctl disable log2ram
rm /etc/systemd/system/log2ram.service
rm /usr/local/bin/log2ram
rm etc/log2ram.conf
rm /etc/cron.hourly/log2ram
echo "##### Reboot isn't needed #####"
else
echo "You need to be ROOT (sudo can be used)"
fi

Cargando…
Cancelar
Guardar