Update setup-docker.sh

This commit is contained in:
Roman Kelesidis 2025-08-21 19:06:08 +03:00
commit 786c2840b8
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -60,6 +60,8 @@ if [ -z "$TP_HOST" ]; then
exit 1 exit 1
fi fi
TP_HOST=$(echo "$TP_HOST" | sed -E 's|^https?://||')
TP_HOST=$(echo "$TP_HOST" | sed 's|/||g')
ESCAPED_HOST=$(printf '%s\n' "$TP_HOST" | sed 's/[&/\]/\\&/g') ESCAPED_HOST=$(printf '%s\n' "$TP_HOST" | sed 's/[&/\]/\\&/g')
if grep -q "TP_HOST=" .env; then if grep -q "TP_HOST=" .env; then