fix: repair Caddy repository keyring setup

This commit is contained in:
Meghdad committed 2026-07-14 20:02:54 +03:30
1 parent 15fe0c956e
commit afd8bc3357
2 files changed
+24 -5

No files matched your search

+2
View File
@@ -31,5 +31,7 @@ write_caddy_config "${fixture}/Caddyfile"
grep -q '^es\.mvphub\.ir {$' "${fixture}/Caddyfile" || fail 'Domain missing from Caddyfile'
grep -q $'^\treverse_proxy 127\.0\.0\.1:8080$' "${fixture}/Caddyfile" || fail 'Upstream missing from Caddyfile'
grep -q $'^\temail admin@mvphub\.ir$' "${fixture}/Caddyfile" || fail 'Email missing from Caddyfile'
grep -q 'install -m 0644 "${keyring_tmp}" "${keyring_file}"' "${TEST_DIR}/setup-domain.sh" \
|| fail 'APT keyring readability protection is missing'
printf 'setup-domain helper tests: ok\n'