use helper functions instead of echo command

This commit is contained in:
Jose Diaz-Gonzalez
2015-04-21 01:14:10 -04:00
parent 99c9bb2863
commit b5495ed0c3
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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