From 5a0312940793b076c1a9a32dedbc84b812c8d633 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 10 Sep 2022 11:34:32 -0600 Subject: [PATCH] logging fixes --- back/lib/ssl_peer_add | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/lib/ssl_peer_add b/back/lib/ssl_peer_add index 8f987fd..d2c0387 100755 --- a/back/lib/ssl_peer_add +++ b/back/lib/ssl_peer_add @@ -37,8 +37,8 @@ ipstring="${3}" printf 'Signing SSL certs for %s.%s.%s...\n' "${hostname}" "${username}" "${TLD}" >>"${LOGFILE}" # Make a directory for the new files -if ! sudo mkdir "${SSL_CONFIG_DIR:?}/${username:?}/${hostname:?}/" >>"${LOGFILE}" 2>/dev/null; then - printf 'Failed to create directory %s/%s/\n' "${username}" "${hostname}" >>"${LOGFILE}" +if ! sudo mkdir "${SSL_CONFIG_DIR:?}/${username:?}/${hostname:?}/" >>"${LOGFILE}" 2>&1; then + printf 'Failed to create directory %s/%s/%s/\n' "SSL_CONFIG_DIR" "${username}" "${hostname}" >>"${LOGFILE}" exit 7 fi