diff --git a/squid-cache/tests/00_start_iptables_cert.sh b/squid-cache/tests/00_start_iptables_cert.sh index 5babb5d..2211cd6 100755 --- a/squid-cache/tests/00_start_iptables_cert.sh +++ b/squid-cache/tests/00_start_iptables_cert.sh @@ -4,7 +4,7 @@ if ! command -v systemctl >/dev/null 2>&1; then exit 0; fi if ! systemctl is-system-running >/dev/null 2>&1; then exit 0; fi if ! command -v iptables >/dev/null 2>&1; then exit 0; fi o=$(mktemp) -bash "$SQUID" start >"$o" +bash "$SQUID" start >"$o" || { journalctl -xeu squid.service; exit 1; } [ "$(tail -n1 "$o")" = started ] iptables -t nat -S | grep -q SQUID_LOCAL [ -f /usr/local/share/ca-certificates/squid-mitm.crt ]