From a86119ddb6adfad60505f55599182784d54fadf5 Mon Sep 17 00:00:00 2001 From: Michael Hobbs Date: Tue, 1 Dec 2015 09:01:59 -0800 Subject: [PATCH] do not chown file that doesn't exist. closes #1729 --- plugins/certs/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/certs/commands b/plugins/certs/commands index 657e240cb..cd5685792 100755 --- a/plugins/certs/commands +++ b/plugins/certs/commands @@ -95,7 +95,7 @@ case "$1" in dokku_log_info1 "Installing certificate and key..." mv -f $TMP_WORK_DIR/server.key $TMP_WORK_DIR/server.crt $APP_SSL_PATH chmod 750 $APP_SSL_PATH - chmod 640 $APP_SSL_PATH/server.key $APP_SSL_PATH/server.crt $APP_SSL_PATH/server.csr + chmod 640 $APP_SSL_PATH/server.key $APP_SSL_PATH/server.crt [[ -n "$DOMAIN" ]] && (dokku domains:add $APP $DOMAIN || 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"