From 7a911cdea8dfefe10404c3a260320da49e12030f Mon Sep 17 00:00:00 2001 From: Jameson Grieve <37882431+JamesonRGrieve@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:56:13 -0600 Subject: [PATCH] Add --location to curl. Without --location, this fails if there is an http-https mismatch as forcing https counts as a 308 redirect. --- Server/wwwroot/Content/Install-Ubuntu-x64.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/wwwroot/Content/Install-Ubuntu-x64.sh b/Server/wwwroot/Content/Install-Ubuntu-x64.sh index 919293e47..6eaae1a05 100644 --- a/Server/wwwroot/Content/Install-Ubuntu-x64.sh +++ b/Server/wwwroot/Content/Install-Ubuntu-x64.sh @@ -8,7 +8,7 @@ InstallDir="/usr/local/bin/Remotely" apt-get update apt-get -y install curl -ETag=$(curl --head $HostName/Content/Remotely-Linux.zip | grep -i "etag" | cut -d' ' -f 2) +ETag=$(curl --head --location $HostName/Content/Remotely-Linux.zip | grep -i "etag" | cut -d' ' -f 2) LogPath="/var/log/remotely/Agent_Install.log" mkdir -p /var/log/remotely