args:
  domain: d.domain2.tld
  key: feature
  value: null
ended_at: 2024-12-30 07:43:55.500396
error: null
interface: api
operation: domain_config_set
parent: null
related_to:
- - domain
  - d.domain2.tld
started_at: 2024-12-30 07:43:44.589183
success: true
yunohost_version: 12.0.9.1

============

2024-12-30 09:43:44,592: INFO - Saving the new configuration...
2024-12-30 09:43:44,611: DEBUG - Formating result in 'export' mode
2024-12-30 09:43:44,612: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./15-nginx" pre \'\' \'\' /var/cache/yunohost/regenconf/pending/nginx 7>&1']'
2024-12-30 09:43:44,615: DEBUG - + set -e
2024-12-30 09:43:44,615: DEBUG - + . /usr/share/yunohost/helpers
2024-12-30 09:43:44,616: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-12-30 09:43:44,617: DEBUG - +++ cd -- /usr/share/yunohost
2024-12-30 09:43:44,617: DEBUG - +++ pwd
2024-12-30 09:43:44,617: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-12-30 09:43:44,618: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-12-30 09:43:44,620: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-12-30 09:43:44,620: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-12-30 09:43:44,641: DEBUG - + do_pre_regen /var/cache/yunohost/regenconf/pending/nginx
2024-12-30 09:43:44,641: DEBUG - + pending_dir=/var/cache/yunohost/regenconf/pending/nginx
2024-12-30 09:43:44,642: DEBUG - + cd /usr/share/yunohost/conf/nginx
2024-12-30 09:43:44,642: DEBUG - + nginx_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx
2024-12-30 09:43:44,642: DEBUG - + nginx_conf_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,642: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,644: DEBUG - ++ int_to_bool
2024-12-30 09:43:44,644: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:44,674: DEBUG - + export webadmin_allowlist_enabled=False
2024-12-30 09:43:44,675: DEBUG - + webadmin_allowlist_enabled=False
2024-12-30 09:43:44,675: DEBUG - + '[' False == True ']'
2024-12-30 09:43:44,676: DEBUG - ++ int_to_bool
2024-12-30 09:43:44,676: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:44,707: DEBUG - + export redirect_to_https=True
2024-12-30 09:43:44,707: DEBUG - + redirect_to_https=True
2024-12-30 09:43:44,708: DEBUG - ++ int_to_bool
2024-12-30 09:43:44,708: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:44,739: DEBUG - + export compatibility=intermediate
2024-12-30 09:43:44,739: DEBUG - + compatibility=intermediate
2024-12-30 09:43:44,740: DEBUG - ++ int_to_bool
2024-12-30 09:43:44,740: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:44,771: DEBUG - + export experimental=False
2024-12-30 09:43:44,771: DEBUG - + experimental=False
2024-12-30 09:43:44,772: DEBUG - ++ int_to_bool
2024-12-30 09:43:44,772: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:44,802: DEBUG - + export tls_passthrough_enabled=False
2024-12-30 09:43:44,803: DEBUG - + tls_passthrough_enabled=False
2024-12-30 09:43:44,804: DEBUG - ++ int_to_bool
2024-12-30 09:43:44,804: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:44,838: DEBUG - + export tls_passthrough_list=null
2024-12-30 09:43:44,838: DEBUG - + tls_passthrough_list=null
2024-12-30 09:43:44,839: DEBUG - + do_base_regen /var/cache/yunohost/regenconf/pending/nginx
2024-12-30 09:43:44,839: DEBUG - + pending_dir=/var/cache/yunohost/regenconf/pending/nginx
2024-12-30 09:43:44,839: DEBUG - + nginx_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx
2024-12-30 09:43:44,839: DEBUG - + nginx_conf_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,839: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,840: DEBUG - + cp acme-challenge.conf.inc /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,841: DEBUG - + cp global.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,843: DEBUG - + cp ssowat.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,844: DEBUG - + cp yunohost_http_errors.conf.inc /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,846: DEBUG - + cp yunohost_sso.conf.inc /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,847: DEBUG - + ynh_render_template security.conf.inc /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/security.conf.inc
2024-12-30 09:43:44,847: DEBUG - + local template_path=security.conf.inc
2024-12-30 09:43:44,847: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/security.conf.inc
2024-12-30 09:43:44,847: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/security.conf.inc
2024-12-30 09:43:44,848: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,850: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:44,850: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:44,850: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:44,927: DEBUG - + ynh_render_template yunohost_admin.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf
2024-12-30 09:43:44,927: DEBUG - + local template_path=yunohost_admin.conf
2024-12-30 09:43:44,928: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf
2024-12-30 09:43:44,928: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf
2024-12-30 09:43:44,929: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:44,930: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:44,930: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:44,930: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:45,005: DEBUG - + ynh_render_template yunohost_admin.conf.inc /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf.inc
2024-12-30 09:43:45,005: DEBUG - + local template_path=yunohost_admin.conf.inc
2024-12-30 09:43:45,005: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf.inc
2024-12-30 09:43:45,005: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf.inc
2024-12-30 09:43:45,007: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:45,008: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:45,008: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:45,009: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:45,126: DEBUG - + ynh_render_template yunohost_api.conf.inc /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_api.conf.inc
2024-12-30 09:43:45,126: DEBUG - + local template_path=yunohost_api.conf.inc
2024-12-30 09:43:45,126: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_api.conf.inc
2024-12-30 09:43:45,126: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_api.conf.inc
2024-12-30 09:43:45,128: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:45,129: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:45,130: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:45,130: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:45,223: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/default.d/
2024-12-30 09:43:45,225: DEBUG - + cp redirect_to_admin.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/default.d/
2024-12-30 09:43:45,226: DEBUG - + local tls_passthrough_module=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/modules-enabled/tls_passthrough.conf
2024-12-30 09:43:45,226: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/modules-enabled/
2024-12-30 09:43:45,227: DEBUG - + [[ False == \T\r\u\e ]]
2024-12-30 09:43:45,227: DEBUG - + touch /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/modules-enabled/tls_passthrough.conf
2024-12-30 09:43:45,229: DEBUG - + ls -1 /etc/nginx/conf.d
2024-12-30 09:43:45,229: DEBUG - + awk '/^[^\.]+\.[^\.]+.*\.conf$/ { print $1 }'
2024-12-30 09:43:45,229: DEBUG - + xargs '--replace={}' touch '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/{}'
2024-12-30 09:43:45,235: DEBUG - ++ yunohost domain cert status --json
2024-12-30 09:43:45,507: DEBUG - + cert_status='{"certificates": {"domain2.tld": {"CA_type": "letsencrypt", "validity": 87, "style": "success", "summary": "letsencrypt"}, "d.domain2.tld": {"CA_type": "selfsigned", "validity": 3649, "style": "warning", "summary": "selfsigned"}, "t.domain2.tld": {"CA_type": "letsencrypt", "validity": 87, "style": "success", "summary": "letsencrypt"}, "maindomain.tld": {"CA_type": "letsencrypt", "validity": 87, "style": "success", "summary": "letsencrypt"}}}'
2024-12-30 09:43:45,508: DEBUG - ++ yunohost domain list --features mail_in mail_out --output-as json
2024-12-30 09:43:46,752: DEBUG - + mail_domain_list=
2024-12-30 09:43:46,752: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:46,752: DEBUG - + domain_conf_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.d
2024-12-30 09:43:46,752: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.d
2024-12-30 09:43:46,753: DEBUG - + mail_autoconfig_dir=/var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/domain2.tld/autoconfig/mail/
2024-12-30 09:43:46,753: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/domain2.tld/autoconfig/mail/
2024-12-30 09:43:46,755: DEBUG - + export domain
2024-12-30 09:43:46,756: DEBUG - ++ echo '{"certificates":' '{"domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"d.domain2.tld":' '{"CA_type":' '"selfsigned",' '"validity":' 3649, '"style":' '"warning",' '"summary":' '"selfsigned"},' '"t.domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"maindomain.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"}}}'
2024-12-30 09:43:46,756: DEBUG - ++ jq '.certificates."domain2.tld".CA_type'
2024-12-30 09:43:46,756: DEBUG - ++ tr -d '"'
2024-12-30 09:43:46,786: DEBUG - + export domain_cert_ca=letsencrypt
2024-12-30 09:43:46,786: DEBUG - + domain_cert_ca=letsencrypt
2024-12-30 09:43:46,786: DEBUG - + grep -q '^domain2.tld$'
2024-12-30 09:43:46,788: DEBUG - + export mail_enabled=False
2024-12-30 09:43:46,788: DEBUG - + mail_enabled=False
2024-12-30 09:43:46,788: DEBUG - + ynh_render_template server.tpl.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.conf
2024-12-30 09:43:46,788: DEBUG - + local template_path=server.tpl.conf
2024-12-30 09:43:46,788: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.conf
2024-12-30 09:43:46,789: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.conf
2024-12-30 09:43:46,790: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:46,791: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:46,791: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:46,791: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:46,870: DEBUG - + '[' False == True ']'
2024-12-30 09:43:46,870: DEBUG - + touch /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.d/yunohost_local.conf
2024-12-30 09:43:46,871: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:46,871: DEBUG - + domain_conf_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.d
2024-12-30 09:43:46,871: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.d
2024-12-30 09:43:46,873: DEBUG - + mail_autoconfig_dir=/var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/d.domain2.tld/autoconfig/mail/
2024-12-30 09:43:46,873: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/d.domain2.tld/autoconfig/mail/
2024-12-30 09:43:46,874: DEBUG - + export domain
2024-12-30 09:43:46,875: DEBUG - ++ echo '{"certificates":' '{"domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"d.domain2.tld":' '{"CA_type":' '"selfsigned",' '"validity":' 3649, '"style":' '"warning",' '"summary":' '"selfsigned"},' '"t.domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"maindomain.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"}}}'
2024-12-30 09:43:46,875: DEBUG - ++ jq '.certificates."d.domain2.tld".CA_type'
2024-12-30 09:43:46,876: DEBUG - ++ tr -d '"'
2024-12-30 09:43:46,906: DEBUG - + export domain_cert_ca=selfsigned
2024-12-30 09:43:46,907: DEBUG - + domain_cert_ca=selfsigned
2024-12-30 09:43:46,907: DEBUG - + grep -q '^d.domain2.tld$'
2024-12-30 09:43:46,909: DEBUG - + export mail_enabled=False
2024-12-30 09:43:46,909: DEBUG - + mail_enabled=False
2024-12-30 09:43:46,909: DEBUG - + ynh_render_template server.tpl.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.conf
2024-12-30 09:43:46,909: DEBUG - + local template_path=server.tpl.conf
2024-12-30 09:43:46,909: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.conf
2024-12-30 09:43:46,909: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.conf
2024-12-30 09:43:46,910: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:46,912: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:46,912: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:46,912: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:46,990: DEBUG - + '[' False == True ']'
2024-12-30 09:43:46,991: DEBUG - + touch /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.d/yunohost_local.conf
2024-12-30 09:43:46,992: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:46,992: DEBUG - + domain_conf_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.d
2024-12-30 09:43:46,992: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.d
2024-12-30 09:43:46,994: DEBUG - + mail_autoconfig_dir=/var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/t.domain2.tld/autoconfig/mail/
2024-12-30 09:43:46,994: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/t.domain2.tld/autoconfig/mail/
2024-12-30 09:43:46,995: DEBUG - + export domain
2024-12-30 09:43:46,996: DEBUG - ++ echo '{"certificates":' '{"domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"d.domain2.tld":' '{"CA_type":' '"selfsigned",' '"validity":' 3649, '"style":' '"warning",' '"summary":' '"selfsigned"},' '"t.domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"maindomain.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"}}}'
2024-12-30 09:43:46,996: DEBUG - ++ jq '.certificates."t.domain2.tld".CA_type'
2024-12-30 09:43:46,997: DEBUG - ++ tr -d '"'
2024-12-30 09:43:47,029: DEBUG - + export domain_cert_ca=letsencrypt
2024-12-30 09:43:47,029: DEBUG - + domain_cert_ca=letsencrypt
2024-12-30 09:43:47,030: DEBUG - + grep -q '^t.domain2.tld$'
2024-12-30 09:43:47,031: DEBUG - + export mail_enabled=False
2024-12-30 09:43:47,031: DEBUG - + mail_enabled=False
2024-12-30 09:43:47,031: DEBUG - + ynh_render_template server.tpl.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.conf
2024-12-30 09:43:47,031: DEBUG - + local template_path=server.tpl.conf
2024-12-30 09:43:47,031: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.conf
2024-12-30 09:43:47,032: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.conf
2024-12-30 09:43:47,033: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:47,034: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:47,034: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:47,034: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:47,114: DEBUG - + '[' False == True ']'
2024-12-30 09:43:47,114: DEBUG - + touch /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.d/yunohost_local.conf
2024-12-30 09:43:47,116: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:47,116: DEBUG - + domain_conf_dir=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.d
2024-12-30 09:43:47,116: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.d
2024-12-30 09:43:47,118: DEBUG - + mail_autoconfig_dir=/var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/maindomain.tld/autoconfig/mail/
2024-12-30 09:43:47,118: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/var/www/.well-known/maindomain.tld/autoconfig/mail/
2024-12-30 09:43:47,119: DEBUG - + export domain
2024-12-30 09:43:47,121: DEBUG - ++ echo '{"certificates":' '{"domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"d.domain2.tld":' '{"CA_type":' '"selfsigned",' '"validity":' 3649, '"style":' '"warning",' '"summary":' '"selfsigned"},' '"t.domain2.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"},' '"maindomain.tld":' '{"CA_type":' '"letsencrypt",' '"validity":' 87, '"style":' '"success",' '"summary":' '"letsencrypt"}}}'
2024-12-30 09:43:47,121: DEBUG - ++ jq '.certificates."maindomain.tld".CA_type'
2024-12-30 09:43:47,121: DEBUG - ++ tr -d '"'
2024-12-30 09:43:47,151: DEBUG - + export domain_cert_ca=letsencrypt
2024-12-30 09:43:47,151: DEBUG - + domain_cert_ca=letsencrypt
2024-12-30 09:43:47,152: DEBUG - + grep -q '^maindomain.tld$'
2024-12-30 09:43:47,154: DEBUG - + export mail_enabled=False
2024-12-30 09:43:47,154: DEBUG - + mail_enabled=False
2024-12-30 09:43:47,154: DEBUG - + ynh_render_template server.tpl.conf /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.conf
2024-12-30 09:43:47,154: DEBUG - + local template_path=server.tpl.conf
2024-12-30 09:43:47,154: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.conf
2024-12-30 09:43:47,155: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.conf
2024-12-30 09:43:47,156: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d
2024-12-30 09:43:47,158: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:47,158: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:47,158: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:47,242: DEBUG - + '[' False == True ']'
2024-12-30 09:43:47,243: DEBUG - + touch /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.d/yunohost_local.conf
2024-12-30 09:43:47,245: DEBUG - ++ ls -1 /var/www/.well-known/d.domain2.tld/autoconfig/mail/config-v1.1.xml /var/www/.well-known/domain2.tld/autoconfig/mail/config-v1.1.xml /var/www/.well-known/t.domain2.tld/autoconfig/mail/config-v1.1.xml /var/www/.well-known/maindomain.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,248: DEBUG - + autoconfig_files='/var/www/.well-known/d.domain2.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,248: DEBUG - /var/www/.well-known/domain2.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,248: DEBUG - /var/www/.well-known/t.domain2.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,248: DEBUG - /var/www/.well-known/maindomain.tld/autoconfig/mail/config-v1.1.xml'
2024-12-30 09:43:47,248: DEBUG - + for file in $autoconfig_files
2024-12-30 09:43:47,249: DEBUG - ++++ dirname /var/www/.well-known/d.domain2.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,250: DEBUG - +++ readlink -f /var/www/.well-known/d.domain2.tld/autoconfig/mail/../..
2024-12-30 09:43:47,252: DEBUG - ++ basename /var/www/.well-known/d.domain2.tld
2024-12-30 09:43:47,252: DEBUG - + domain=d.domain2.tld
2024-12-30 09:43:47,253: DEBUG - + [[ domain2.tld d.domain2.tld t.domain2.tld maindomain.tld =~ d.domain2.tld ]]
2024-12-30 09:43:47,253: DEBUG - + for file in $autoconfig_files
2024-12-30 09:43:47,254: DEBUG - ++++ dirname /var/www/.well-known/domain2.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,255: DEBUG - +++ readlink -f /var/www/.well-known/domain2.tld/autoconfig/mail/../..
2024-12-30 09:43:47,256: DEBUG - ++ basename /var/www/.well-known/domain2.tld
2024-12-30 09:43:47,257: DEBUG - + domain=domain2.tld
2024-12-30 09:43:47,258: DEBUG - + [[ domain2.tld d.domain2.tld t.domain2.tld maindomain.tld =~ domain2.tld ]]
2024-12-30 09:43:47,258: DEBUG - + for file in $autoconfig_files
2024-12-30 09:43:47,259: DEBUG - ++++ dirname /var/www/.well-known/t.domain2.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,260: DEBUG - +++ readlink -f /var/www/.well-known/t.domain2.tld/autoconfig/mail/../..
2024-12-30 09:43:47,262: DEBUG - ++ basename /var/www/.well-known/t.domain2.tld
2024-12-30 09:43:47,263: DEBUG - + domain=t.domain2.tld
2024-12-30 09:43:47,263: DEBUG - + [[ domain2.tld d.domain2.tld t.domain2.tld maindomain.tld =~ t.domain2.tld ]]
2024-12-30 09:43:47,263: DEBUG - + for file in $autoconfig_files
2024-12-30 09:43:47,264: DEBUG - ++++ dirname /var/www/.well-known/maindomain.tld/autoconfig/mail/config-v1.1.xml
2024-12-30 09:43:47,265: DEBUG - +++ readlink -f /var/www/.well-known/maindomain.tld/autoconfig/mail/../..
2024-12-30 09:43:47,267: DEBUG - ++ basename /var/www/.well-known/maindomain.tld
2024-12-30 09:43:47,268: DEBUG - + domain=maindomain.tld
2024-12-30 09:43:47,268: DEBUG - + [[ domain2.tld d.domain2.tld t.domain2.tld maindomain.tld =~ maindomain.tld ]]
2024-12-30 09:43:47,268: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/sites-enabled
2024-12-30 09:43:47,269: DEBUG - + touch /var/cache/yunohost/regenconf/pending/nginx/etc/nginx/sites-enabled/default
2024-12-30 09:43:47,371: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./19-postfix" pre \'\' \'\' /var/cache/yunohost/regenconf/pending/postfix 7>&1']'
2024-12-30 09:43:47,374: DEBUG - + set -e
2024-12-30 09:43:47,374: DEBUG - + . /usr/share/yunohost/helpers
2024-12-30 09:43:47,375: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-12-30 09:43:47,376: DEBUG - +++ cd -- /usr/share/yunohost
2024-12-30 09:43:47,377: DEBUG - +++ pwd
2024-12-30 09:43:47,377: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-12-30 09:43:47,377: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-12-30 09:43:47,380: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-12-30 09:43:47,380: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-12-30 09:43:47,403: DEBUG - + do_pre_regen /var/cache/yunohost/regenconf/pending/postfix
2024-12-30 09:43:47,403: DEBUG - + pending_dir=/var/cache/yunohost/regenconf/pending/postfix
2024-12-30 09:43:47,403: DEBUG - + cd /usr/share/yunohost/conf/postfix
2024-12-30 09:43:47,403: DEBUG - + postfix_dir=/var/cache/yunohost/regenconf/pending/postfix/etc/postfix
2024-12-30 09:43:47,403: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/postfix/etc/postfix
2024-12-30 09:43:47,404: DEBUG - + default_dir=/var/cache/yunohost/regenconf/pending/postfix/etc/default/
2024-12-30 09:43:47,405: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/postfix/etc/default/
2024-12-30 09:43:47,406: DEBUG - + cp plain/header_checks plain/ldap-accounts.cf plain/ldap-aliases.cf plain/ldap-domains.cf plain/ldap-groups.cf plain/master.cf plain/sender_canonical plain/smtp_reply_filter /var/cache/yunohost/regenconf/pending/postfix/etc/postfix
2024-12-30 09:43:47,409: DEBUG - ++ cat /etc/yunohost/current_host
2024-12-30 09:43:47,410: DEBUG - + main_domain=maindomain.tld
2024-12-30 09:43:47,442: DEBUG - + export compatibility=intermediate
2024-12-30 09:43:47,443: DEBUG - + compatibility=intermediate
2024-12-30 09:43:47,443: DEBUG - + export relay_port=
2024-12-30 09:43:47,443: DEBUG - + relay_port=
2024-12-30 09:43:47,443: DEBUG - + export relay_user=
2024-12-30 09:43:47,443: DEBUG - + relay_user=
2024-12-30 09:43:47,443: DEBUG - + export relay_host=
2024-12-30 09:43:47,443: DEBUG - + relay_host=
2024-12-30 09:43:47,444: DEBUG - ++ int_to_bool
2024-12-30 09:43:47,444: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:47,476: DEBUG - + export relay_enabled=False
2024-12-30 09:43:47,476: DEBUG - + relay_enabled=False
2024-12-30 09:43:47,476: DEBUG - + '[' False == True ']'
2024-12-30 09:43:47,477: DEBUG - ++ yunohost settings get email.smtp.smtp_backup_mx_domains
2024-12-30 09:43:47,478: DEBUG - ++ sed 's/,/ /g'
2024-12-30 09:43:48,194: DEBUG - + export backup_mx_domains=
2024-12-30 09:43:48,194: DEBUG - + backup_mx_domains=
2024-12-30 09:43:48,195: DEBUG - ++ yunohost settings get email.smtp.smtp_backup_mx_emails_whitelisted
2024-12-30 09:43:48,195: DEBUG - ++ sed 's/,/ /g'
2024-12-30 09:43:48,874: DEBUG - + export backup_mx_emails=
2024-12-30 09:43:48,874: DEBUG - + backup_mx_emails=
2024-12-30 09:43:48,874: DEBUG - + rm -f /var/cache/yunohost/regenconf/pending/postfix/etc/postfix/relay_recipients
2024-12-30 09:43:48,875: DEBUG - + touch /var/cache/yunohost/regenconf/pending/postfix/etc/postfix/relay_recipients
2024-12-30 09:43:48,876: DEBUG - + '[' -n '' ']'
2024-12-30 09:43:48,877: DEBUG - + export main_domain
2024-12-30 09:43:48,877: DEBUG - ++ yunohost domain list --features mail_in mail_out --output-as json
2024-12-30 09:43:48,878: DEBUG - ++ tr '\n' ' '
2024-12-30 09:43:50,227: DEBUG - + export domain_list=
2024-12-30 09:43:50,227: DEBUG - + domain_list=
2024-12-30 09:43:50,227: DEBUG - + ynh_render_template main.cf /var/cache/yunohost/regenconf/pending/postfix/etc/postfix/main.cf
2024-12-30 09:43:50,227: DEBUG - + local template_path=main.cf
2024-12-30 09:43:50,227: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/main.cf
2024-12-30 09:43:50,228: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/postfix/etc/postfix/main.cf
2024-12-30 09:43:50,229: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/postfix/etc/postfix
2024-12-30 09:43:50,230: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:50,231: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:50,231: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:50,311: DEBUG - + ynh_render_template sni /var/cache/yunohost/regenconf/pending/postfix/etc/postfix/sni
2024-12-30 09:43:50,311: DEBUG - + local template_path=sni
2024-12-30 09:43:50,311: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/sni
2024-12-30 09:43:50,312: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/postfix/etc/postfix/sni
2024-12-30 09:43:50,313: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/postfix/etc/postfix
2024-12-30 09:43:50,315: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:50,315: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:50,315: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:50,392: DEBUG - + cat postsrsd
2024-12-30 09:43:50,393: DEBUG - + sed 's/{{ main_domain }}/maindomain.tld/g'
2024-12-30 09:43:50,393: DEBUG - + sed 's/{{ domain_list }}//g'
2024-12-30 09:43:50,396: DEBUG - ++ int_to_bool
2024-12-30 09:43:50,396: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:50,426: DEBUG - + ipv6=True
2024-12-30 09:43:50,426: DEBUG - + '[' True == False ']'
2024-12-30 09:43:50,427: DEBUG - + '[' '!' -f /proc/net/if_inet6 ']'
2024-12-30 09:43:50,528: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./25-dovecot" pre \'\' \'\' /var/cache/yunohost/regenconf/pending/dovecot 7>&1']'
2024-12-30 09:43:50,532: DEBUG - + set -e
2024-12-30 09:43:50,532: DEBUG - + . /usr/share/yunohost/helpers
2024-12-30 09:43:50,533: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-12-30 09:43:50,534: DEBUG - +++ cd -- /usr/share/yunohost
2024-12-30 09:43:50,534: DEBUG - +++ pwd
2024-12-30 09:43:50,534: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-12-30 09:43:50,534: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-12-30 09:43:50,536: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-12-30 09:43:50,536: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-12-30 09:43:50,558: DEBUG - + do_pre_regen /var/cache/yunohost/regenconf/pending/dovecot
2024-12-30 09:43:50,559: DEBUG - + pending_dir=/var/cache/yunohost/regenconf/pending/dovecot
2024-12-30 09:43:50,559: DEBUG - + cd /usr/share/yunohost/conf/dovecot
2024-12-30 09:43:50,559: DEBUG - + dovecot_dir=/var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot
2024-12-30 09:43:50,559: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/global_script
2024-12-30 09:43:50,560: DEBUG - + cp dovecot-ldap.conf /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/dovecot-ldap.conf
2024-12-30 09:43:50,562: DEBUG - + cp dovecot.sieve /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/global_script/dovecot.sieve
2024-12-30 09:43:50,565: DEBUG - ++ int_to_bool
2024-12-30 09:43:50,565: DEBUG - ++ sed -e 's/^1$/True/g' -e 's/^0$/False/g' -e 's/^true$/True/g' -e 's/^false$/False/g'
2024-12-30 09:43:50,594: DEBUG - + export pop3_enabled=False
2024-12-30 09:43:50,595: DEBUG - + pop3_enabled=False
2024-12-30 09:43:50,595: DEBUG - ++ cat /etc/yunohost/current_host
2024-12-30 09:43:50,596: DEBUG - + export main_domain=maindomain.tld
2024-12-30 09:43:50,596: DEBUG - + main_domain=maindomain.tld
2024-12-30 09:43:50,597: DEBUG - ++ yunohost domain list --features mail_in mail_out --output-as json
2024-12-30 09:43:50,598: DEBUG - ++ tr '\n' ' '
2024-12-30 09:43:51,884: DEBUG - + export domain_list=
2024-12-30 09:43:51,884: DEBUG - + domain_list=
2024-12-30 09:43:51,884: DEBUG - + ynh_render_template dovecot.conf /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/dovecot.conf
2024-12-30 09:43:51,884: DEBUG - + local template_path=dovecot.conf
2024-12-30 09:43:51,884: DEBUG - + local output_path=/var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/dovecot.conf
2024-12-30 09:43:51,884: DEBUG - ++ dirname /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/dovecot.conf
2024-12-30 09:43:51,885: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot
2024-12-30 09:43:51,887: DEBUG - + python3 -c 'import os, sys, jinja2; sys.stdout.write(
2024-12-30 09:43:51,887: DEBUG -                     jinja2.Template(sys.stdin.read()
2024-12-30 09:43:51,887: DEBUG -                     ).render(os.environ));'
2024-12-30 09:43:51,966: DEBUG - + '[' '!' -f /proc/net/if_inet6 ']'
2024-12-30 09:43:51,966: DEBUG - + mkdir -p /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/yunohost.d
2024-12-30 09:43:51,968: DEBUG - + cp pre-ext.conf /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/yunohost.d
2024-12-30 09:43:51,969: DEBUG - + cp post-ext.conf /var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/yunohost.d
2024-12-30 09:43:52,071: DEBUG - Checking pending configuration which would have been applied for category 'nginx'...
2024-12-30 09:43:52,079: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/global.conf' to system conf '/etc/nginx/conf.d/global.conf'
2024-12-30 09:43:52,079: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,080: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.conf' to system conf '/etc/nginx/conf.d/d.domain2.tld.conf'
2024-12-30 09:43:52,080: DEBUG - Configuration file '/etc/nginx/conf.d/d.domain2.tld.conf' backed up to '/var/cache/yunohost/regenconf/backup/etc/nginx/conf.d/d.domain2.tld.conf-20241230.074352'
2024-12-30 09:43:52,080: DEBUG - Configuration file '/etc/nginx/conf.d/d.domain2.tld.conf' updated
2024-12-30 09:43:52,080: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.conf' to system conf '/etc/nginx/conf.d/maindomain.tld.conf'
2024-12-30 09:43:52,081: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,081: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.conf' to system conf '/etc/nginx/conf.d/t.domain2.tld.conf'
2024-12-30 09:43:52,081: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,081: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/ssowat.conf' to system conf '/etc/nginx/conf.d/ssowat.conf'
2024-12-30 09:43:52,081: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,081: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_http_errors.conf.inc' to system conf '/etc/nginx/conf.d/yunohost_http_errors.conf.inc'
2024-12-30 09:43:52,081: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,081: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/security.conf.inc' to system conf '/etc/nginx/conf.d/security.conf.inc'
2024-12-30 09:43:52,082: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,082: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_sso.conf.inc' to system conf '/etc/nginx/conf.d/yunohost_sso.conf.inc'
2024-12-30 09:43:52,082: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,082: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf.inc' to system conf '/etc/nginx/conf.d/yunohost_admin.conf.inc'
2024-12-30 09:43:52,082: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,082: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_admin.conf' to system conf '/etc/nginx/conf.d/yunohost_admin.conf'
2024-12-30 09:43:52,082: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,082: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_panel.conf.inc' to system conf '/etc/nginx/conf.d/yunohost_panel.conf.inc'
2024-12-30 09:43:52,083: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,083: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/yunohost_api.conf.inc' to system conf '/etc/nginx/conf.d/yunohost_api.conf.inc'
2024-12-30 09:43:52,083: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,083: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.conf' to system conf '/etc/nginx/conf.d/domain2.tld.conf'
2024-12-30 09:43:52,083: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,083: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/acme-challenge.conf.inc' to system conf '/etc/nginx/conf.d/acme-challenge.conf.inc'
2024-12-30 09:43:52,083: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,083: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/domain2.tld.d/yunohost_local.conf' to system conf '/etc/nginx/conf.d/domain2.tld.d/yunohost_local.conf'
2024-12-30 09:43:52,083: DEBUG - > system conf is already removed
2024-12-30 09:43:52,083: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/default.d/redirect_to_admin.conf' to system conf '/etc/nginx/conf.d/default.d/redirect_to_admin.conf'
2024-12-30 09:43:52,084: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,084: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/maindomain.tld.d/yunohost_local.conf' to system conf '/etc/nginx/conf.d/maindomain.tld.d/yunohost_local.conf'
2024-12-30 09:43:52,084: DEBUG - > system conf is already removed
2024-12-30 09:43:52,084: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/t.domain2.tld.d/yunohost_local.conf' to system conf '/etc/nginx/conf.d/t.domain2.tld.d/yunohost_local.conf'
2024-12-30 09:43:52,084: DEBUG - > system conf is already removed
2024-12-30 09:43:52,084: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/conf.d/d.domain2.tld.d/yunohost_local.conf' to system conf '/etc/nginx/conf.d/d.domain2.tld.d/yunohost_local.conf'
2024-12-30 09:43:52,084: DEBUG - > system conf is already removed
2024-12-30 09:43:52,084: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/modules-enabled/tls_passthrough.conf' to system conf '/etc/nginx/modules-enabled/tls_passthrough.conf'
2024-12-30 09:43:52,084: DEBUG - > system conf is already removed
2024-12-30 09:43:52,084: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/nginx/etc/nginx/sites-enabled/default' to system conf '/etc/nginx/sites-enabled/default'
2024-12-30 09:43:52,084: DEBUG - > system conf is already removed
2024-12-30 09:43:52,085: DEBUG - processing pending conf 'None' to system conf '/var/www/.well-known/t.domain2.tld/autoconfig/mail/config-v1.1.xml'
2024-12-30 09:43:52,085: WARNING - The configuration file '/var/www/.well-known/t.domain2.tld/autoconfig/mail/config-v1.1.xml' has been manually modified and will not be updated
2024-12-30 09:43:52,087: DEBUG - processing pending conf 'None' to system conf '/var/www/.well-known/d.domain2.tld/autoconfig/mail/config-v1.1.xml'
2024-12-30 09:43:52,087: WARNING - The configuration file '/var/www/.well-known/d.domain2.tld/autoconfig/mail/config-v1.1.xml' has been manually modified and will not be updated
2024-12-30 09:43:52,089: DEBUG - processing pending conf 'None' to system conf '/var/www/.well-known/domain2.tld/autoconfig/mail/config-v1.1.xml'
2024-12-30 09:43:52,090: WARNING - The configuration file '/var/www/.well-known/domain2.tld/autoconfig/mail/config-v1.1.xml' has been manually modified and will not be updated
2024-12-30 09:43:52,091: DEBUG - processing pending conf 'None' to system conf '/var/www/.well-known/maindomain.tld/autoconfig/mail/config-v1.1.xml'
2024-12-30 09:43:52,092: WARNING - The configuration file '/var/www/.well-known/maindomain.tld/autoconfig/mail/config-v1.1.xml' has been manually modified and will not be updated
2024-12-30 09:43:52,093: DEBUG - updating conf hashes for 'nginx' with: {'/etc/nginx/conf.d/acme-challenge.conf.inc': 'f4128306d1ec66220bdc5b82678f38be', '/etc/nginx/conf.d/d.domain2.tld.conf': '47f04c74e7f964d93c8cb50bf0c1fe33', '/etc/nginx/conf.d/default.d/redirect_to_admin.conf': '4e76f06e083d460d15aeeac8f106b4d9', '/etc/nginx/conf.d/global.conf': 'f8c8721f10d718546b2735080770d307', '/etc/nginx/conf.d/domain2.tld.conf': '58818411f3b90fda6d0dd0576c97b7d6', '/etc/nginx/conf.d/security.conf.inc': '01846f35c865bbd9982c2771b28944c1', '/etc/nginx/conf.d/ssowat.conf': '88f0941db4a897c214f34a0661db890d', '/etc/nginx/conf.d/t.domain2.tld.conf': '96ce42f50aba53814e64c6e193d34ac2', '/etc/nginx/conf.d/maindomain.tld.conf': 'bf912a4156ab24af6c928a43b00c3c97', '/etc/nginx/conf.d/yunohost_admin.conf': 'b5516d9fcdec5f28ee0e00feb0a482c2', '/etc/nginx/conf.d/yunohost_admin.conf.inc': 'e50af8d763f22816f75e6d2f5955f14c', '/etc/nginx/conf.d/yunohost_api.conf.inc': 'f1816e014c7befefa37bf454dc3c3de4', '/etc/nginx/conf.d/yunohost_http_errors.conf.inc': '7bd05c30c115a0101d1fd37e66fca33d', '/etc/nginx/conf.d/yunohost_panel.conf.inc': 'dd0a6a0abc3acbc5702b3e2efbd572da', '/etc/nginx/conf.d/yunohost_sso.conf.inc': '0bdddaca3afea81a35a2193099b6d175', '/var/www/.well-known/d.domain2.tld/autoconfig/mail/config-v1.1.xml': '30c8e22d0990a8ff784bf60d2f05e977', '/var/www/.well-known/domain2.tld/autoconfig/mail/config-v1.1.xml': 'f788421e0ae06cd8733df9baa6f307ef', '/var/www/.well-known/t.domain2.tld/autoconfig/mail/config-v1.1.xml': '374df35b1241649eced12d8268065820', '/var/www/.well-known/maindomain.tld/autoconfig/mail/config-v1.1.xml': '7072518a8eb8ea388ac6d9060e173b24', '/etc/nginx/conf.d/domain2.tld.d/yunohost_local.conf': None, '/etc/nginx/conf.d/maindomain.tld.d/yunohost_local.conf': None, '/etc/nginx/conf.d/t.domain2.tld.d/yunohost_local.conf': None, '/etc/nginx/conf.d/d.domain2.tld.d/yunohost_local.conf': None, '/etc/nginx/modules-enabled/tls_passthrough.conf': None, '/etc/nginx/sites-enabled/default': None}
2024-12-30 09:43:52,106: DEBUG - Checking pending configuration which would have been applied for category 'postfix'...
2024-12-30 09:43:52,114: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/default/postsrsd' to system conf '/etc/default/postsrsd'
2024-12-30 09:43:52,114: DEBUG - Configuration file '/etc/default/postsrsd' backed up to '/var/cache/yunohost/regenconf/backup/etc/default/postsrsd-20241230.074352'
2024-12-30 09:43:52,114: DEBUG - Configuration file '/etc/default/postsrsd' updated
2024-12-30 09:43:52,115: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/ldap-aliases.cf' to system conf '/etc/postfix/ldap-aliases.cf'
2024-12-30 09:43:52,115: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,115: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/sni' to system conf '/etc/postfix/sni'
2024-12-30 09:43:52,115: DEBUG - Configuration file '/etc/postfix/sni' backed up to '/var/cache/yunohost/regenconf/backup/etc/postfix/sni-20241230.074352'
2024-12-30 09:43:52,115: DEBUG - Configuration file '/etc/postfix/sni' updated
2024-12-30 09:43:52,116: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/relay_recipients' to system conf '/etc/postfix/relay_recipients'
2024-12-30 09:43:52,116: DEBUG - > system conf is already removed
2024-12-30 09:43:52,116: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/header_checks' to system conf '/etc/postfix/header_checks'
2024-12-30 09:43:52,116: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,116: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/ldap-accounts.cf' to system conf '/etc/postfix/ldap-accounts.cf'
2024-12-30 09:43:52,116: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,116: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/sender_canonical' to system conf '/etc/postfix/sender_canonical'
2024-12-30 09:43:52,116: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,116: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/main.cf' to system conf '/etc/postfix/main.cf'
2024-12-30 09:43:52,117: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,117: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/ldap-domains.cf' to system conf '/etc/postfix/ldap-domains.cf'
2024-12-30 09:43:52,117: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,117: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/master.cf' to system conf '/etc/postfix/master.cf'
2024-12-30 09:43:52,117: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,117: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/ldap-groups.cf' to system conf '/etc/postfix/ldap-groups.cf'
2024-12-30 09:43:52,117: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,117: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/postfix/etc/postfix/smtp_reply_filter' to system conf '/etc/postfix/smtp_reply_filter'
2024-12-30 09:43:52,118: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,118: SUCCESS - Configuration updated for 'postfix'
2024-12-30 09:43:52,120: DEBUG - updating conf hashes for 'postfix' with: {'/etc/default/postsrsd': 'f021e93d0d7cf2ce101104547f3e28b9', '/etc/postfix/header_checks': '80a29f033d979766873a0bd90f5a6542', '/etc/postfix/ldap-accounts.cf': '301af4a3fa12e43fffa4216ffda0f2b2', '/etc/postfix/ldap-aliases.cf': '8712ccd28e11fda276abd34e8ce85b5a', '/etc/postfix/ldap-domains.cf': '082d1b0953e8021982c5cffd3d7f10a9', '/etc/postfix/ldap-groups.cf': '1cf2c66289db19475443b83d10a3f3eb', '/etc/postfix/main.cf': 'f979e5c69dfb0edf61de60622bda087e', '/etc/postfix/master.cf': 'c32bf9a7d37a33b45a93d08e5fdbe1e2', '/etc/postfix/sender_canonical': '6af7cba824e4a563ec6d7d786f891e2f', '/etc/postfix/smtp_reply_filter': 'ff0bbf5d75d5e4096733c51d7745d924', '/etc/postfix/sni': '78620a44cb9684504d118fd1ee35034b', '/etc/postfix/relay_recipients': None}
2024-12-30 09:43:52,132: DEBUG - Checking pending configuration which would have been applied for category 'dovecot'...
2024-12-30 09:43:52,140: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/dovecot.conf' to system conf '/etc/dovecot/dovecot.conf'
2024-12-30 09:43:52,140: DEBUG - Configuration file '/etc/dovecot/dovecot.conf' backed up to '/var/cache/yunohost/regenconf/backup/etc/dovecot/dovecot.conf-20241230.074352'
2024-12-30 09:43:52,140: DEBUG - Configuration file '/etc/dovecot/dovecot.conf' updated
2024-12-30 09:43:52,140: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/dovecot-ldap.conf' to system conf '/etc/dovecot/dovecot-ldap.conf'
2024-12-30 09:43:52,141: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,141: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/yunohost.d/post-ext.conf' to system conf '/etc/dovecot/yunohost.d/post-ext.conf'
2024-12-30 09:43:52,141: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,141: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/yunohost.d/pre-ext.conf' to system conf '/etc/dovecot/yunohost.d/pre-ext.conf'
2024-12-30 09:43:52,141: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,141: DEBUG - processing pending conf '/var/cache/yunohost/regenconf/pending/dovecot/etc/dovecot/global_script/dovecot.sieve' to system conf '/etc/dovecot/global_script/dovecot.sieve'
2024-12-30 09:43:52,141: DEBUG - > system conf is already up-to-date
2024-12-30 09:43:52,141: SUCCESS - Configuration updated for 'dovecot'
2024-12-30 09:43:52,144: DEBUG - updating conf hashes for 'dovecot' with: {'/etc/dovecot/dovecot-ldap.conf': 'f3fec990f5deb2121d0420fbfb4f4101', '/etc/dovecot/dovecot.conf': '581a0c63db92d873c45976fcc24f3c0f', '/etc/dovecot/global_script/dovecot.sieve': 'f6c923affd80d9fda418dbf93664717c', '/etc/dovecot/yunohost.d/post-ext.conf': '714bdbe482b6130f817db02bb96f3770', '/etc/dovecot/yunohost.d/pre-ext.conf': '0f6216e006ef1be6ca7d7fc23ca91992'}
2024-12-30 09:43:52,157: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./15-nginx" post \'\' \'\' /etc/nginx/conf.d/d.domain2.tld.conf 7>&1']'
2024-12-30 09:43:52,160: DEBUG - + set -e
2024-12-30 09:43:52,160: DEBUG - + . /usr/share/yunohost/helpers
2024-12-30 09:43:52,161: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-12-30 09:43:52,161: DEBUG - +++ cd -- /usr/share/yunohost
2024-12-30 09:43:52,162: DEBUG - +++ pwd
2024-12-30 09:43:52,162: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-12-30 09:43:52,162: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-12-30 09:43:52,165: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-12-30 09:43:52,165: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-12-30 09:43:52,186: DEBUG - + do_post_regen /etc/nginx/conf.d/d.domain2.tld.conf
2024-12-30 09:43:52,186: DEBUG - + regen_conf_files=/etc/nginx/conf.d/d.domain2.tld.conf
2024-12-30 09:43:52,186: DEBUG - + sed -i 's/$remote_user;/$http_ynh_user if_not_empty;/g' /etc/nginx/fastcgi_params
2024-12-30 09:43:52,187: DEBUG - + ls -l /etc/nginx/conf.d/default.d/redirect_to_admin.conf /etc/nginx/conf.d/domain2.tld.d/my_webapp.conf /etc/nginx/conf.d/t.domain2.tld.d/gotosocial.conf
2024-12-30 09:43:52,189: DEBUG - -rw-r--r-- 1 root root   60 Dec 28 09:09 /etc/nginx/conf.d/default.d/redirect_to_admin.conf
2024-12-30 09:43:52,189: DEBUG - -rw-r--r-- 1 root root  705 Dec 29 08:32 /etc/nginx/conf.d/domain2.tld.d/my_webapp.conf
2024-12-30 09:43:52,189: DEBUG - -rw-r--r-- 1 root root 1364 Dec 28 09:43 /etc/nginx/conf.d/t.domain2.tld.d/gotosocial.conf
2024-12-30 09:43:52,190: DEBUG - + chown root:root /etc/nginx/conf.d/default.d/redirect_to_admin.conf /etc/nginx/conf.d/domain2.tld.d/my_webapp.conf /etc/nginx/conf.d/t.domain2.tld.d/gotosocial.conf
2024-12-30 09:43:52,191: DEBUG - + chmod 644 /etc/nginx/conf.d/default.d/redirect_to_admin.conf /etc/nginx/conf.d/domain2.tld.d/my_webapp.conf /etc/nginx/conf.d/t.domain2.tld.d/gotosocial.conf
2024-12-30 09:43:52,192: DEBUG - + '[' -z /etc/nginx/conf.d/d.domain2.tld.conf ']'
2024-12-30 09:43:52,192: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:52,193: DEBUG - + mkdir -p /etc/nginx/conf.d/domain2.tld.d
2024-12-30 09:43:52,194: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:52,194: DEBUG - + mkdir -p /etc/nginx/conf.d/d.domain2.tld.d
2024-12-30 09:43:52,195: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:52,195: DEBUG - + mkdir -p /etc/nginx/conf.d/t.domain2.tld.d
2024-12-30 09:43:52,196: DEBUG - + for domain in $YNH_DOMAINS
2024-12-30 09:43:52,196: DEBUG - + mkdir -p /etc/nginx/conf.d/maindomain.tld.d
2024-12-30 09:43:52,197: DEBUG - + nginx -t
2024-12-30 09:43:52,337: DEBUG - + pgrep nginx
2024-12-30 09:43:52,349: DEBUG - 90593
2024-12-30 09:43:52,349: DEBUG - 158686
2024-12-30 09:43:52,349: DEBUG - 158687
2024-12-30 09:43:52,349: DEBUG - 158688
2024-12-30 09:43:52,349: DEBUG - + systemctl reload nginx
2024-12-30 09:43:52,551: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./19-postfix" post \'\' \'\' /etc/default/postsrsd,/etc/postfix/sni 7>&1']'
2024-12-30 09:43:52,554: DEBUG - + set -e
2024-12-30 09:43:52,554: DEBUG - + . /usr/share/yunohost/helpers
2024-12-30 09:43:52,555: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-12-30 09:43:52,556: DEBUG - +++ cd -- /usr/share/yunohost
2024-12-30 09:43:52,556: DEBUG - +++ pwd
2024-12-30 09:43:52,557: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-12-30 09:43:52,557: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-12-30 09:43:52,559: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-12-30 09:43:52,559: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-12-30 09:43:52,582: DEBUG - + do_post_regen /etc/default/postsrsd,/etc/postfix/sni
2024-12-30 09:43:52,582: DEBUG - + regen_conf_files=/etc/default/postsrsd,/etc/postfix/sni
2024-12-30 09:43:52,582: DEBUG - + chown postfix /etc/postfix
2024-12-30 09:43:52,583: DEBUG - + '[' -e /etc/postfix/sasl_passwd ']'
2024-12-30 09:43:52,583: DEBUG - + '[' -e /etc/postfix/relay_recipients ']'
2024-12-30 09:43:52,583: DEBUG - + postmap -F hash:/etc/postfix/sni
2024-12-30 09:43:52,591: DEBUG - + python3 -c 'from yunohost.app import regen_mail_app_user_config_for_dovecot_and_postfix as r; r(only="postfix")'
2024-12-30 09:43:52,717: DEBUG - + [[ -z /etc/default/postsrsd,/etc/postfix/sni ]]
2024-12-30 09:43:52,718: DEBUG - + systemctl restart postfix
2024-12-30 09:43:53,345: DEBUG - + systemctl restart postsrsd
2024-12-30 09:43:53,446: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./25-dovecot" post \'\' \'\' /etc/dovecot/dovecot.conf 7>&1']'
2024-12-30 09:43:53,450: DEBUG - + set -e
2024-12-30 09:43:53,450: DEBUG - + . /usr/share/yunohost/helpers
2024-12-30 09:43:53,451: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-12-30 09:43:53,452: DEBUG - +++ cd -- /usr/share/yunohost
2024-12-30 09:43:53,452: DEBUG - +++ pwd
2024-12-30 09:43:53,452: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-12-30 09:43:53,452: DEBUG - ++ YNH_HELPERS_VERSION=1
2024-12-30 09:43:53,454: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-12-30 09:43:53,455: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-12-30 09:43:53,476: DEBUG - + do_post_regen /etc/dovecot/dovecot.conf
2024-12-30 09:43:53,477: DEBUG - + regen_conf_files=/etc/dovecot/dovecot.conf
2024-12-30 09:43:53,477: DEBUG - + mkdir -p /etc/dovecot/yunohost.d/pre-ext.d
2024-12-30 09:43:53,478: DEBUG - + mkdir -p /etc/dovecot/yunohost.d/post-ext.d
2024-12-30 09:43:53,479: DEBUG - + id vmail
2024-12-30 09:43:53,481: DEBUG - + '[' '!' -e /home/vmail ']'
2024-12-30 09:43:53,481: DEBUG - + chown -R vmail:mail /etc/dovecot/global_script
2024-12-30 09:43:53,482: DEBUG - + chmod 770 /etc/dovecot/global_script
2024-12-30 09:43:53,483: DEBUG - + chown root:mail /var/mail
2024-12-30 09:43:53,485: DEBUG - + chmod 1775 /var/mail
2024-12-30 09:43:53,486: DEBUG - + python3 -c 'from yunohost.app import regen_mail_app_user_config_for_dovecot_and_postfix as r; r(only="dovecot")'
2024-12-30 09:43:54,089: DEBUG - + '[' -z /etc/dovecot/dovecot.conf ']'
2024-12-30 09:43:54,089: DEBUG - + [[ /etc/dovecot/dovecot.conf =~ dovecot\.sieve ]]
2024-12-30 09:43:54,089: DEBUG - + systemctl restart dovecot
2024-12-30 09:43:55,493: DEBUG - Full log of this operation: '<a href="#/tools/logs/20241230-074344-regen_conf-3_categories" style="text-decoration:underline">Regenerate system configurations '3_categories'</a>'
2024-12-30 09:43:55,498: SUCCESS - Config updated as expected