1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Merge pull request #1 from polytan02/patch-1

Wrong app name. Can conflict with official wordpress_ynh
Oubli sur le script remove!
This commit is contained in:
Maniack Crudelis 2015-04-12 22:48:18 +02:00
commit b78e45644c

View file

@ -1,10 +1,10 @@
#!/bin/bash
db_user=wordpress
db_name=wordpress
db_user=wordpressms
db_name=wordpressms
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting wordpress domain)
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/wordpress
sudo rm -f /etc/nginx/conf.d/$domain.d/wordpress.conf
sudo rm -rf /var/www/wordpressms
sudo rm -f /etc/nginx/conf.d/$domain.d/wordpressms.conf