Skip to content

Commit

Permalink
Add curl to dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 25, 2020
1 parent 94e34aa commit 167cead
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Agent/Services/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public async Task CheckForUpdates()
}

var lastEtag = string.Empty;

if (File.Exists("etag.txt"))
{
lastEtag = await File.ReadAllTextAsync("etag.txt");
Expand Down
4 changes: 3 additions & 1 deletion Server/wwwroot/Downloads/Install-Linux-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
HostName=
Organization=
GUID=$(cat /proc/sys/kernel/random/uuid)
ETag=

if [ "$1" = "--uninstall" ]; then
systemctl stop remotely-agent
Expand Down Expand Up @@ -29,6 +30,7 @@ apt-get -y install libxtst-dev
apt-get -y install xclip
apt-get -y install jq
apt-get -y install xterm
apt-get -y install curl

if [ -f "/usr/local/bin/Remotely/ConnectionInfo.json" ]; then
GUID=`cat "/usr/local/bin/Remotely/ConnectionInfo.json" | jq -r '.DeviceID'`
Expand Down Expand Up @@ -62,7 +64,7 @@ connectionInfo="{

echo "$connectionInfo" > ./ConnectionInfo.json

curl --head $HostName/Downloads/Remotely-Linux.zip | grep etag | cut -d' ' -f 2 > etag.txt
curl --head $HostName/Downloads/Remotely-Linux.zip | grep etag | cut -d' ' -f 2 > ./etag.txt

echo Creating service...

Expand Down

0 comments on commit 167cead

Please sign in to comment.