From 2203ade7c1cd7356fa46195fb9284e74401788f5 Mon Sep 17 00:00:00 2001 From: "Brown, Joshua" Date: Mon, 13 Nov 2023 00:44:31 -0500 Subject: [PATCH] Add fix to admin script, fix the need for interactive prompt which would hang --- scripts/generate_certificate_refresh_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate_certificate_refresh_script.sh b/scripts/generate_certificate_refresh_script.sh index 3725441b8..2ef521140 100755 --- a/scripts/generate_certificate_refresh_script.sh +++ b/scripts/generate_certificate_refresh_script.sh @@ -9,7 +9,7 @@ SOURCE=$(dirname "$SCRIPT") PROJECT_ROOT=$(realpath "${SOURCE}/..") source "${PROJECT_ROOT}/config/datafed.sh" -VERSION="1.0.0" +VERSION="1.0.1" echo "$FILE_NAME $VERSION" ERROR_DETECTED=0 @@ -54,7 +54,7 @@ cat << OUTER_EOF > "$PROJECT_ROOT/scripts/admin_refresh_certs.sh" # and root root DOMAIN="${DATAFED_DOMAIN}" systemctl stop datafed-ws.service -lego --email="${DATAFED_LEGO_EMAIL}" --domains="${DATAFED_DOMAIN}" --tls run +lego --accept-tos --email="${DATAFED_LEGO_EMAIL}" --domains="${DATAFED_DOMAIN}" --tls run DIR_NAME=\$(date +%m-%Y) mkdir -p "\${DIR_NAME}" # Create a copy so we can always go back and check when the last time was