1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/turtl_ynh.git synced 2024-09-03 20:26:35 +02:00

Fix remove script

This commit is contained in:
Luc Didry 2017-09-29 14:49:31 +02:00
parent 58d9f460c7
commit a58f0c3fe4

View file

@ -31,7 +31,7 @@ then
echo "Remove turtl service"
sudo systemctl stop turtl
sudo systemctl disable turtl
ynh_package_remove "/etc/systemd/system/turtl.service"
ynh_secure_remove "/etc/systemd/system/turtl.service"
sudo systemctl daemon-reload
sudo yunohost service remove turtl
fi
@ -45,10 +45,9 @@ fi
sudo rm -rf "/var/www/$app/"
# Remove dependencies
sudo pip uninstall rethinkdb -y
ynh_remove_app_dependencies
ynh_secure_remove "/etc/rethinkdb/instances.d/turtl.conf"
sudo rm -rf "/var/lib/rethinkdb/turtl"
ynh_package_remove libuv1-dev rethinkdb
sudo rm -rf "/var/lib/rethinkdb/turtl"
sudo rm -rf "/var/www/.cache/"
sudo rm -rf "/var/www/quicklisp/"
sudo rm -rf "/opt/ccl/"
@ -56,6 +55,7 @@ ynh_secure_remove "/var/www/.ccl-init.lisp"
ynh_secure_remove "/usr/bin/ccl"
ynh_secure_remove "/etc/logrotate.d/turtl"
ynh_secure_remove "/etc/rsyslog.d/turtl.conf"
sudo rm -rf "/var/log/turtl/"
sudo service rsyslog restart
# Remove source.list
ynh_secure_remove "/etc/apt/sources.list.d/turtl.list"