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

Change postifx edition : ynh_replace_string

This commit is contained in:
Krakinou 2018-11-25 13:54:51 +01:00 committed by GitHub
parent 360419038d
commit 0e3c87a503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,8 @@ ynh_mysql_create_db $db_user $db_user $db_pwd
#setting postfix to use virtual aliases file
sudo cp $postfix $postfix.emailpoubelle.bak #backup it eventually if that causes some issues
sudo sed -i "s/^virtual_alias_maps/#virtual_alias_maps/g" $postfix
ynh_replace_string "^virtual_alias_maps" "#virtual_alias_maps" $postfix
#sudo sed -i "s/^virtual_alias_maps/#virtual_alias_maps/g" $postfix
echo "virtual_alias_maps = hash:$final_path/var/virtual" | sudo tee -a $postfix
#create the virtual aliases file