From 5b8be968144e088983f41d3f9213b2d1569d1642 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 25 Nov 2018 16:40:00 +0100 Subject: [PATCH] use ynh_replace_string instead of sed --- scripts/remove | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 221e117..6bee0d0 100644 --- a/scripts/remove +++ b/scripts/remove @@ -21,8 +21,11 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/emailpoubelle.conf #removing aliases sudo sed -i "/devnull:\/dev\/null/d" /etc/aliases sudo newaliases +#efface le nouvel virtual alias sudo sed -i "/virtual_alias_maps = hash:\/var\/www\/emailpoubelle\/var\/virtual/d" $postfix -sudo sed -i "s/^#virtual_alias_maps/virtual_alias_maps/g" $postfix +#reactive le nouveau +ynh_replace_string "^#virtual_alias_maps" "virtual_alias_maps" $postfix + #remove cronjob sudo rm -f /etc/cron.d/emailpoubelle sudo service postfix reload