lintball. also run nginx:build-config if domains:add fails

This commit is contained in:
Michael Hobbs
2015-08-25 17:02:46 -07:00
committed by Jose Diaz-Gonzalez
parent 8ea5cfa2aa
commit 5cb62b168f

View File

@@ -21,8 +21,9 @@ case "$1" in
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
mkdir -p "$DOKKU_ROOT/$APP/tls"
dokku_log_info1 "Installing certificate and key..."
mv -f $TMP_WORK_DIR/server.key $TMP_WORK_DIR/server.crt $SSL_PATH
[[ -n "$DOMAIN" ]] && dokku domains:add $APP $DOMAIN || true
[[ -n "$DOMAIN" ]] && (dokku domains:add $APP $DOMAIN || dokku nginx:build-config $APP)
dokku_log_info1 "The following is a certificate signing request that can be used"
dokku_log_info1 "to generate an 'officially' signed SSL certificate for $APP at $DOMAIN"
dokku_log_info1 "by a CA of your choosing."