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

This commit is contained in:
Michael Hobbs authored and Jose Diaz-Gonzalez committed 2015-09-03 22:35:38 -04:00
1 parent 8ea5cfa2aa
commit 5cb62b168f
1 file changed
+2 -1
+2 -1
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."