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

use ynh_replace_string instead of sed

This commit is contained in:
Krakinou 2018-11-25 16:40:00 +01:00 committed by GitHub
parent 1d2944e51e
commit 5b8be96814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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