don't call nginx_build_config twice and make ip regex functions globally accessible

This commit is contained in:
Michael Hobbs
2015-11-19 09:10:04 -05:00
parent 3e466917fd
commit 498d52ecdf
4 changed files with 35 additions and 38 deletions

View File

@@ -75,8 +75,6 @@ case "$1" in
for DOMAIN in "$@"; do
echo "$DOMAIN" >> "$DOKKU_ROOT/$APP/VHOST"
done
# we need to restart the app to make sure we're binding to the appropriate network interface
nginx_build_config $APP
plugn trigger post-domains-update $APP
for DOMAIN in "$@"; do
dokku_log_info1 "Added $DOMAIN to $APP"