Fix after test

This commit is contained in:
Alexandre Aubin 2017-07-16 17:35:17 -04:00
parent b1fdb39880
commit 8e49f9db6d

View file

@ -18,7 +18,7 @@ do_pre_regen() {
# prepare main.cf conf file
main_domain=$(cat /etc/yunohost/current_host)
domain_list=$(sudo yunohost domain list --output-as plain --quiet)
domain_list=$(sudo yunohost domain list --output-as plain --quiet | tr '\n' ' ')
cat main.cf \
| sed "s/{{ main_domain }}/${main_domain}/g" \
@ -44,7 +44,8 @@ do_post_regen() {
regen_conf_files=$1
[[ -z "$regen_conf_files" ]] \
|| { sudo service postfix restart && sudo service postsrsd restart }
|| { sudo service postfix restart && sudo service postsrsd restart; }
}
FORCE=${2:-0}