mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix after test
This commit is contained in:
parent
b1fdb39880
commit
8e49f9db6d
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,7 @@ do_pre_regen() {
|
||||||
|
|
||||||
# prepare main.cf conf file
|
# prepare main.cf conf file
|
||||||
main_domain=$(cat /etc/yunohost/current_host)
|
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 \
|
cat main.cf \
|
||||||
| sed "s/{{ main_domain }}/${main_domain}/g" \
|
| sed "s/{{ main_domain }}/${main_domain}/g" \
|
||||||
|
@ -44,7 +44,8 @@ do_post_regen() {
|
||||||
regen_conf_files=$1
|
regen_conf_files=$1
|
||||||
|
|
||||||
[[ -z "$regen_conf_files" ]] \
|
[[ -z "$regen_conf_files" ]] \
|
||||||
|| { sudo service postfix restart && sudo service postsrsd restart }
|
|| { sudo service postfix restart && sudo service postsrsd restart; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE=${2:-0}
|
FORCE=${2:-0}
|
||||||
|
|
Loading…
Add table
Reference in a new issue