1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00

Add remove script

This commit is contained in:
Elie 2014-05-06 20:54:08 -04:00
parent e614e9ef09
commit 04649976d8
2 changed files with 11 additions and 1 deletions

View file

@ -10,7 +10,7 @@
"email": "contact@mikangali.om", "email": "contact@mikangali.om",
"url": "http://www.mikangali.com/" "url": "http://www.mikangali.com/"
}, },
"multi_instance": "true", "multi_instance": "false",
"arguments": { "arguments": {
"install": [ "install": [
{ {

View file

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