From 62472f6a6531a6da2a83e313a90ec851e710c77f Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Thu, 2 Jan 2025 21:57:38 -0600 Subject: [PATCH] Update remoteWebsiteInstall.sh While running the command, a user had the test upload work (because it uses "upload.sh" which uses LFTP_COMMANDS) but the mirror failed. --- remoteWebsiteInstall.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/remoteWebsiteInstall.sh b/remoteWebsiteInstall.sh index f241d56f4..4577f3f0c 100755 --- a/remoteWebsiteInstall.sh +++ b/remoteWebsiteInstall.sh @@ -690,6 +690,8 @@ function upload_remote_website() local NL="$( echo -e "\n " )" # Need space otherwise it doesn't work - not sure why local CMDS=" lcd '${ALLSKY_WEBSITE}'" CMDS+="${NL}set dns:fatal-timeout 10; set net:max-retries 2; set net:timeout 10" + LFTP_COMMANDS="$( settings ".REMOTEWEBSITE_LFTP_COMMANDS" "${ALLSKY_ENV}" )" + [[ -n ${LFTP_COMMANDS} ]] && CMDS+="; ${LFTP_COMMANDS}" # shellcheck disable=SC2086 if [[ -n "${REMOTE_DIR}" ]]; then CMDS+="${NL}cd '${REMOTE_DIR}'"