mirror of
https://github.com/YunoHost-Apps/ampache_ynh.git
synced 2024-09-03 18:15:55 +02:00
[enh] add comments in remove script.
This commit is contained in:
parent
16a5a0ad61
commit
b5787f119d
1 changed files with 6 additions and 3 deletions
|
@ -5,9 +5,12 @@ db_name=ampache
|
|||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||
domain=$(sudo yunohost app setting ampache domain)
|
||||
|
||||
# Drop MySQL database
|
||||
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
||||
sudo rm -rf /var/www/ampache
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/ampache.conf
|
||||
|
||||
# Reload Nginx configuration
|
||||
# Remove sources
|
||||
sudo rm -rf /var/www/ampache
|
||||
|
||||
# Remove Nginx configuration and reload Nginx conf
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/ampache.conf
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Add table
Reference in a new issue