From 9b9a7e15c2dc55b22e983e0c77c9c9ca7d9f07fd Mon Sep 17 00:00:00 2001 From: Philippe Kueck Date: Fri, 7 Oct 2016 14:19:31 +0200 Subject: [PATCH] install with 0640 --- acme.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/acme.sh b/acme.sh index 8643f089..4c73cc88 100755 --- a/acme.sh +++ b/acme.sh @@ -2897,7 +2897,7 @@ _installcert() { if [ -f "$Le_RealCertPath" ] && [ ! "$IS_RENEW" ] ; then cp "$Le_RealCertPath" "$Le_RealCertPath".bak fi - install -D "$CERT_PATH" "$Le_RealCertPath" + install -D -m0640 "$CERT_PATH" "$Le_RealCertPath" fi if [ "$Le_RealCACertPath" ] ; then @@ -2910,7 +2910,7 @@ _installcert() { if [ -f "$Le_RealCACertPath" ] && [ ! "$IS_RENEW" ] ; then cp "$Le_RealCACertPath" "$Le_RealCACertPath".bak fi - install -D "$CA_CERT_PATH" "$Le_RealCACertPath" + install -D -m0640 "$CA_CERT_PATH" "$Le_RealCACertPath" fi fi @@ -2921,7 +2921,7 @@ _installcert() { if [ -f "$Le_RealKeyPath" ] && [ ! "$IS_RENEW" ] ; then cp "$Le_RealKeyPath" "$Le_RealKeyPath".bak fi - install -D "$CERT_KEY_PATH" "$Le_RealKeyPath" + install -D -m0640 "$CERT_KEY_PATH" "$Le_RealKeyPath" fi if [ "$Le_RealFullChainPath" ] ; then @@ -2930,7 +2930,7 @@ _installcert() { if [ -f "$Le_RealFullChainPath" ] && [ ! "$IS_RENEW" ] ; then cp "$Le_RealFullChainPath" "$Le_RealFullChainPath".bak fi - install -D "$CERT_FULLCHAIN_PATH" "$Le_RealFullChainPath" + install -D -m0640 "$CERT_FULLCHAIN_PATH" "$Le_RealFullChainPath" fi if [ "$Le_ReloadCmd" ] ; then