use helper functions instead of echo command
This commit is contained in:
@@ -45,7 +45,7 @@ case "$1" in
|
|||||||
VHOST=$(< "$DOKKU_ROOT/HOSTNAME")
|
VHOST=$(< "$DOKKU_ROOT/HOSTNAME")
|
||||||
fi
|
fi
|
||||||
if [[ "$VHOST" =~ $RE_IPV4 ]] || [[ "$VHOST" =~ $RE_IPV6 ]];then
|
if [[ "$VHOST" =~ $RE_IPV4 ]] || [[ "$VHOST" =~ $RE_IPV6 ]];then
|
||||||
echo "unsupported vhost config found. disabling vhost support"
|
dokku_log_info2 "unsupported vhost config found. disabling vhost support"
|
||||||
dokku config:set-norestart $APP NO_VHOST=1
|
dokku config:set-norestart $APP NO_VHOST=1
|
||||||
else
|
else
|
||||||
if [[ -f "$DOKKU_ROOT/VHOST" ]]; then
|
if [[ -f "$DOKKU_ROOT/VHOST" ]]; then
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ EOF
|
|||||||
dokku_log_info1 "Running nginx-pre-reload"
|
dokku_log_info1 "Running nginx-pre-reload"
|
||||||
pluginhook nginx-pre-reload $APP $DOKKU_APP_LISTEN_PORT $DOKKU_APP_LISTEN_IP
|
pluginhook nginx-pre-reload $APP $DOKKU_APP_LISTEN_PORT $DOKKU_APP_LISTEN_IP
|
||||||
|
|
||||||
echo " Reloading nginx"
|
dokku_log_verbose "Reloading nginx"
|
||||||
restart_nginx
|
restart_nginx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user