From 00ba98143c47b289f7569ad01b01df8d5c685b25 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 20 Oct 2022 19:18:28 -0600 Subject: [PATCH] www-data should work for now --- back/lib/ssl_peer_add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/lib/ssl_peer_add b/back/lib/ssl_peer_add index 7b7fc19..ecb8eb1 100755 --- a/back/lib/ssl_peer_add +++ b/back/lib/ssl_peer_add @@ -90,7 +90,7 @@ fi; if ! sudo [ -f "${SSL_CONFIG_DIR:?}/${username:?}/${hostname:?}/server.crt" fi; if ! sudo chmod 644 "${SSL_CONFIG_DIR}/${username}/${hostname}/server.crt"; then printf 'ERROR! Failed to chmod SSL cert %s/%s/server.crt\n' "${username}" "${hostname}" >>"${LOGFILE}" exit 8 -fi & if ! sudo chown -R "${username}:${username}" "${SSL_CONFIG_DIR}/${username}/"; then +fi & if ! sudo chgrp -R www-data "${SSL_CONFIG_DIR}/${username}/"; then printf 'ERROR! Failed to set %s owner to %s!\n' "${username}:${username}" "${SSL_CONFIG_DIR}/${username}/" >>"${LOGFILE}" # Remove old files