From 56e5cfc06d2fafedbd74ca707c38318ad7a90cad Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 24 Oct 2017 17:38:05 +0200 Subject: [PATCH] evoacme: directories must be owned by "acme" --- evoacme/files/evoacme.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/evoacme/files/evoacme.sh b/evoacme/files/evoacme.sh index c840cba2..8223392a 100755 --- a/evoacme/files/evoacme.sh +++ b/evoacme/files/evoacme.sh @@ -99,21 +99,21 @@ main() { [ "$1" = "-h" ] || [ "$1" = "--help" ] && usage && exit 0 mkdir -p "${ACME_DIR}" - chown root: "${ACME_DIR}" + chown acme: "${ACME_DIR}" [ -w "${ACME_DIR}" ] || error "Directory ${ACME_DIR} is not writable" [ -d "${CSR_DIR}" ] || error "Directory ${CSR_DIR} is not found" mkdir -p "${CRT_DIR}" - chown root: "${CRT_DIR}" + chown acme: "${CRT_DIR}" [ -w "${CRT_DIR}" ] || error "Directory ${CRT_DIR} is not writable" mkdir -p "${LOG_DIR}" - chown root: "${LOG_DIR}" + chown acme: "${LOG_DIR}" [ -w "${LOG_DIR}" ] || error "Directory ${LOG_DIR} is not writable" mkdir -p "${HOOKS_DIR}" - chown root: "${HOOKS_DIR}" + chown acme: "${HOOKS_DIR}" [ -d "${HOOKS_DIR}" ] || error "Directory ${HOOKS_DIR} is not found" readonly VHOST=$(basename "$1" .conf)