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:
parent
1d2944e51e
commit
5b8be96814
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue