1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mopidy_ynh.git synced 2024-09-03 19:46:21 +02:00

Modification du script de desinstallation

This commit is contained in:
magikcypress 2017-03-08 01:17:44 +01:00
parent aa9ee3da4f
commit 7294c06fd2

View file

@ -19,16 +19,23 @@ sudo pip uninstall -y mopidy_musicbox_webclient
sleep 4 sleep 4
# Delete stupid file # Delete stupid file
# SECURE_REMOVE '/root/.config/mopidy' # Normally a root directory is delete with install app
# SECURE_REMOVE '/root/.cache/mopidy' if [ -d "/root/.config/$app" ]; then
# SECURE_REMOVE '/root/.local/share/mopidy' SECURE_REMOVE '/root/.config/$app'
SECURE_REMOVE '/usr/local/bin/mopidy' fi
SECURE_REMOVE '/usr/share/mopidy' if [ -d "/root/.cache/$app" ]; then
SECURE_REMOVE '/var/lib/mopidy' SECURE_REMOVE '/root/.cache/$app'
SECURE_REMOVE '/etc/apt/sources.list.d/mopidy.list' fi
SECURE_REMOVE '/usr/local/lib/python2.7/dist-packages/Mopidy_MusicBox_Webclient-2.3.0-py2.7.egg' if [ -d "/root/.local/share/$app" ]; then
SECURE_REMOVE '/tmp/mopidy-musicbox-webclient' SECURE_REMOVE '/root/.local/share/$app'
fi
SECURE_REMOVE '/usr/local/bin/$app'
SECURE_REMOVE '/usr/share/$app'
SECURE_REMOVE '/var/lib/$app'
SECURE_REMOVE '/etc/apt/sources.list.d/$app.list'
SECURE_REMOVE '/tmp/$app-musicbox-webclient'
SECURE_REMOVE '/var/www/$app' SECURE_REMOVE '/var/www/$app'
sudo rm -fr '/usr/local/lib/python2.7/dist-packages/Mopidy_MusicBox_Webclient-2.3.0-py2.7.egg'
# disallow firewall port # disallow firewall port
sudo yunohost firewall disallow TCP 6600 sudo yunohost firewall disallow TCP 6600