Merge pull request #1682 from progrium/1678_mh-nullglob-fix
set nullglob when looking for PORT files
This commit is contained in:
commit
cff8e27545
1 file changed
+2
@@ -167,9 +167,11 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(is_app_vhost_enabled $APP)" == "false" ]]; then
|
if [[ "$(is_app_vhost_enabled $APP)" == "false" ]]; then
|
||||||
|
shopt -s nullglob
|
||||||
for PORT_FILE in $DOKKU_ROOT/$APP/PORT.*; do
|
for PORT_FILE in $DOKKU_ROOT/$APP/PORT.*; do
|
||||||
echo "http://$(< "$DOKKU_ROOT/HOSTNAME"):$(< "$PORT_FILE") (container)"
|
echo "http://$(< "$DOKKU_ROOT/HOSTNAME"):$(< "$PORT_FILE") (container)"
|
||||||
done
|
done
|
||||||
|
shopt -u nullglob
|
||||||
|
|
||||||
DOKKU_NGINX_PORT=$(config_get $APP DOKKU_NGINX_PORT || true)
|
DOKKU_NGINX_PORT=$(config_get $APP DOKKU_NGINX_PORT || true)
|
||||||
DOKKU_NGINX_SSL_PORT=$(config_get $APP DOKKU_NGINX_SSL_PORT || true)
|
DOKKU_NGINX_SSL_PORT=$(config_get $APP DOKKU_NGINX_SSL_PORT || true)
|
||||||
|
|||||||
Reference in new issue
Block a user