You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
326 B
10 lines
326 B
#!/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
|