From 263e3b95e8dce2cc9e00deb9dc607f857264dd38 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:39:57 -0600 Subject: [PATCH] Update remoteWebsiteInstall.sh: run postData.sh And make debug statement more obvious. --- remoteWebsiteInstall.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/remoteWebsiteInstall.sh b/remoteWebsiteInstall.sh index 235aef418..49ea84bd9 100755 --- a/remoteWebsiteInstall.sh +++ b/remoteWebsiteInstall.sh @@ -555,10 +555,10 @@ function check_if_files_exist() local PRE_MSG="File '${FILE}'" if [[ ${HTTP_STATUS} == "200" ]] ; then - show_debug_message "${PRE_MSG} exists on the remote server" + show_debug_message "${PRE_MSG} EXISTS on the remote server" RET_CODE=0 else - show_debug_message "${PRE_MSG} does not exist on the remote server (HTTP_STATUS=${HTTP_STATUS})" + show_debug_message "${PRE_MSG} DOES NOT EXIST on the remote server (HTTP_STATUS=${HTTP_STATUS})" if [[ ${AND_OR} == "and" ]]; then return 1 fi @@ -804,6 +804,13 @@ function enable_remote_website() display_msg --logonly info "Remote Website enabled." } +function post_data() +{ + local MSG + MSG="$( "${ALLSKY_SCRIPTS}/postData.sh" --allfiles 2>&1 )" + display_msg --logonly info "${MSG}" +} + ############################################## main body OK="true" HELP="false" @@ -851,4 +858,5 @@ disable_remote_website upload_remote_website upload_remote_config_file enable_remote_website +post_data display_complete