From 131eac4499e0bcfe57fc2f6f06c9df9621451967 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 24 Oct 2017 17:37:46 +0200 Subject: [PATCH] Fix: return if file is not readable --- evoacme/files/evoacme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evoacme/files/evoacme.sh b/evoacme/files/evoacme.sh index e095dad2..c840cba2 100755 --- a/evoacme/files/evoacme.sh +++ b/evoacme/files/evoacme.sh @@ -45,7 +45,7 @@ sed_cert_path_for_apache() { local vhost_full_path="/etc/apache2/ssl/${vhost}.conf" local cert_path=$2 - [ ! -r "${vhost_full_path}" ] || return 0 + [ ! -r "${vhost_full_path}" ] && return 0 local search="^SSLCertificateFile.*$" local replace="SSLCertificateFile ${cert_path}" @@ -63,7 +63,7 @@ sed_cert_path_for_nginx() { local vhost_full_path="/etc/nginx/ssl/${vhost}.conf" local cert_path=$2 - [ ! -r "${vhost_full_path}" ] || return 0 + [ ! -r "${vhost_full_path}" ] && return 0 local search="^ssl_certificate[^_].*$" local replace="ssl_certificate ${cert_path};"