mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
17 lines
387 B
Text
17 lines
387 B
Text
|
#!/bin/bash
|
||
|
|
||
|
db_user=movim
|
||
|
db_name=movim
|
||
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||
|
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
|
||
|
|
||
|
# Removing executable files
|
||
|
sudo rm -rf /var/www/movim
|
||
|
domain=$(sudo yunohost app setting movim domain)
|
||
|
sudo rm -f /etc/nginx/conf.d/$domain.d/movim.conf
|
||
|
|
||
|
#REMOVE INIT
|
||
|
|
||
|
# Restarting services
|
||
|
sudo service nginx reload
|