mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
use helper functions instead of echo command
This commit is contained in:
@@ -45,7 +45,7 @@ case "$1" in
|
||||
VHOST=$(< "$DOKKU_ROOT/HOSTNAME")
|
||||
fi
|
||||
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
|
||||
else
|
||||
if [[ -f "$DOKKU_ROOT/VHOST" ]]; then
|
||||
|
||||
@@ -97,7 +97,7 @@ EOF
|
||||
dokku_log_info1 "Running nginx-pre-reload"
|
||||
pluginhook nginx-pre-reload $APP $DOKKU_APP_LISTEN_PORT $DOKKU_APP_LISTEN_IP
|
||||
|
||||
echo " Reloading nginx"
|
||||
dokku_log_verbose "Reloading nginx"
|
||||
restart_nginx
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user