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:
parent
d5928f7998
commit
edb48887d1
1 changed files with 3 additions and 2 deletions
|
@ -7,16 +7,17 @@ source /usr/share/yunohost/helpers
|
||||||
db_user=emailPoubelle
|
db_user=emailPoubelle
|
||||||
db_name=$db_user
|
db_name=$db_user
|
||||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
||||||
domain=$(sudo yunohost app setting emailpoubelle domain)
|
domain=$(ynh_app_setting_get $app domain)
|
||||||
postfix=/etc/postfix/main.cf
|
postfix=/etc/postfix/main.cf
|
||||||
|
|
||||||
|
#remove php-geoip
|
||||||
|
ynh_remove_app_dependencies
|
||||||
#removing emailpoubelle database
|
#removing emailpoubelle database
|
||||||
ynh_mysql_remove_db $db_user $db_name
|
ynh_mysql_remove_db $db_user $db_name
|
||||||
#removing emailpoubelle directory
|
#removing emailpoubelle directory
|
||||||
sudo rm -rf /var/www/emailpoubelle
|
sudo rm -rf /var/www/emailpoubelle
|
||||||
#removing nginx conf
|
#removing nginx conf
|
||||||
sudo rm -f /etc/nginx/conf.d/$domain.d/emailpoubelle.conf
|
sudo rm -f /etc/nginx/conf.d/$domain.d/emailpoubelle.conf
|
||||||
#todo remove php-geoip
|
|
||||||
#removing aliases
|
#removing aliases
|
||||||
sudo sed -i "/devnull:\/dev\/null/d" /etc/aliases
|
sudo sed -i "/devnull:\/dev\/null/d" /etc/aliases
|
||||||
sudo newaliases
|
sudo newaliases
|
||||||
|
|
Loading…
Reference in a new issue