1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

Update remove

This commit is contained in:
Rafi59 2017-10-06 10:59:36 +02:00 committed by GitHub
parent bc000b9359
commit ea109f691a

View file

@ -8,7 +8,12 @@ full_path=$(sudo yunohost app setting diaspora final_path)
sudo service diaspora_ynh stop sudo service diaspora_ynh stop
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;" #=================================================
# REMOVE THE MYSQL DATABASE
#=================================================
# Remove a database if it exists, along with the associated user
ynh_mysql_remove_db $db_name $db_name
sudo rm -f /etc/nginx/conf.d/$domain.d/diaspora.conf sudo rm -f /etc/nginx/conf.d/$domain.d/diaspora.conf