1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/emailpoubelle_ynh.git synced 2024-09-03 18:26:29 +02:00

Update remove

This commit is contained in:
Krakinou 2018-11-21 00:22:08 +01:00 committed by GitHub
parent 6d5b8ac6b4
commit 1766a06c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,17 @@
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
db_user=emailPoubelle
db_name=$db_user
root_pwd=$(sudo cat /etc/yunohost/mysql)
domain=$(sudo yunohost app setting emailpoubelle domain)
postfix=/etc/postfix/main.cf
#removing emailpoubelle database
sudo mysql -u root -p$root_pwd -e "DROP DATABASE $db_name ; DROP USER $db_user@localhost ;"
ynh_mysql_remove_db $db_user $db_name
#removing emailpoubelle directory
sudo rm -rf /var/www/emailpoubelle
#removing nginx conf