Skip to content

Commit

Permalink
Fix issue on CI (linux) 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Miklos Bagi committed Aug 3, 2024
1 parent b78c74a commit 3c30e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ check_transmission_port_open() {
pick_new_gluetun_server() {
log "asking gluetun to disconnect from $country_details", "s#$country_details#* OMITTED *#"
gluetun_server_response=$(curl -s -X PUT -d '{"status":"stopped"}' "$GLUETUN_CONTROL_ENDPOINT/v1/openvpn/status") || log "error instructing gluetun to pick new server ($gluetun_server_response)."
if ! echo "$gluetun_server_response" | grep -qE '{"outcome":.*"stopp(ed|ing)"}$'; then
if ! echo "$gluetun_server_response" | grep -q '{"outcome":"stopp\(ed\|ing\)"}'; then
log "bleh, gluetun server response is weird, expected {\"outcome\":\"stopped\"} or {\"outcome\":\"stopping\"}, got $gluetun_server_response"
return 1
fi
Expand Down

0 comments on commit 3c30e54

Please sign in to comment.