1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00
wordpress_ynh/scripts/remove
polytan02 3e1556f761 Wrong app name. Can conflict with official wordpress_ynh
Wrong app name. Can conflict with official wordpress_ynh
2015-04-12 21:34:40 +01:00

10 lines
326 B
Bash
Executable file

#!/bin/bash
db_user=wordpressms
db_name=wordpressms
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting wordpressms domain)
mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
sudo rm -rf /var/www/wordpressms
sudo rm -f /etc/nginx/conf.d/$domain.d/wordpressms.conf