* Fix #334 wrong port config generated * Update docker/entrypoint.sh
This commit is contained in:
parent
99edf0f5f4
commit
063a6cc371
|
@ -53,7 +53,8 @@ fi
|
||||||
|
|
||||||
# Allow selection of Apache port for network_mode: host
|
# Allow selection of Apache port for network_mode: host
|
||||||
if [ "$WEBPORT" != "80" ]; then
|
if [ "$WEBPORT" != "80" ]; then
|
||||||
sed -i "s/80/$WEBPORT/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
|
sed -i "s/^Listen 80\$/Listen $WEBPORT/g" /etc/apache2/ports.conf
|
||||||
|
sed -i "s/*:80>/*:$WEBPORT>/g" /etc/apache2/sites-available/000-default.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue