Skip to content

Commit

Permalink
Merge pull request #73 from Superbition/develop
Browse files Browse the repository at this point in the history
New Release Merge: v5.0.2
  • Loading branch information
danielashare authored May 29, 2021
2 parents 1ba4840 + 35ecf1c commit d4f8c49
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [v5.0.2 (2021-05-29)](https://github.com/Superbition/Bakup-Agent/releases/tag/v5.0.2)

### Fixed
- Updated the URL in the update script to pull down the install script (#72)

## [v5.0.1 (2021-05-28)](https://github.com/Superbition/Bakup-Agent/releases/tag/v5.0.1)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/Agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Agent
const string apiVersion = "1";

// Version of the agent
const string agentVersion = "v5.0.1";
const string agentVersion = "v5.0.2";

// Program loop wait time in seconds
const int pollTime = 60;
Expand Down
6 changes: 5 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ fi
echo "Uninstalling current agent..."
/opt/bakupagent/uninstall.sh

# This cd takes the script out of the deleted directory before running the install script. This stops getcwd() errors
# saying it can't find the directory
cd ..

echo "Installing the agent..."
wget -qO - https://agent.bakup.io/install/latest | sudo bash -s $CLIENT_ID $API_TOKEN $USER_ID
wget -qO - https://agent.bakup.io/latest/install | sudo bash -s $CLIENT_ID $API_TOKEN $USER_ID

echo "Update completed"

0 comments on commit d4f8c49

Please sign in to comment.