mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge 2aae4d854a
into a5049a8a13
This commit is contained in:
commit
b668e5a2ad
1 changed files with 5 additions and 0 deletions
|
@ -82,6 +82,11 @@ do_post_regen() {
|
|||
short_hostname=$(hostname -s)
|
||||
grep -q "127.0.0.1.*$short_hostname" /etc/hosts || echo -e "\n127.0.0.1\t$short_hostname" >> /etc/hosts
|
||||
|
||||
# For SMTP connexion from apps wich request valid certificate we need to force main domain to point to localhost ip
|
||||
# because connexion on external ip is forbinden by mail server for apps.
|
||||
main_domain=$(yunohost domain main-domain --output-as plain)
|
||||
grep -q "127.0.0.1.*$main_domain" /etc/hosts || echo -e "\n127.0.0.1\t$main_domain" >>/etc/hosts
|
||||
|
||||
[[ -n "$regen_conf_files" ]] || return 0
|
||||
|
||||
# Remove / disable services likely to conflict with dnsmasq
|
||||
|
|
Loading…
Add table
Reference in a new issue