Merge pull request #5484 from apparle/apache_additional_network

Specifying additional docker network for Apache container
This commit is contained in:
Simon L. 2024-11-07 09:37:56 +01:00 committed by GitHub
commit cd3a33a800
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 60 additions and 25 deletions

View file

@ -193,6 +193,14 @@ It is set to '$APACHE_IP_BINDING'."
exit 1
fi
fi
if [ -n "$APACHE_ADDITIONAL_NETWORK" ]; then
if ! echo "$APACHE_ADDITIONAL_NETWORK" | grep -q "^[a-zA-Z0-9_-]\+$"; then
print_red "You've set APACHE_ADDITIONAL_NETWORK but not to an allowed value.
It needs to be a string with letters, numbers, hyphens and underscores.
It is set to '$APACHE_ADDITIONAL_NETWORK'."
exit 1
fi
fi
if [ -n "$TALK_PORT" ]; then
if ! check_if_number "$TALK_PORT"; then
print_red "You provided an Talk port but did not only use numbers.