From e329d09f5c46af74df92f7aa7e2699bc14662fcc Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Thu, 19 Sep 2019 23:56:31 -0700 Subject: [PATCH] Updated AWS EC2 (markdown) --- AWS-EC2.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/AWS-EC2.md b/AWS-EC2.md index 26946e1..2f9be7a 100644 --- a/AWS-EC2.md +++ b/AWS-EC2.md @@ -8,6 +8,17 @@ Choose the correct AMI Image ID based on your AWS region. - us-west-2 `ami-007c6990949f5ccee` (Oregon) - eu-central-1 `ami-06e252d6d8b0c2f1f` (Frankfurt) +# Upgrading Staping +You can upgrade the Statping executable by running the commands below on your EC2 instance. +``` +VERSION=$(curl -s "https://github.com/hunterlong/statping/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}') +wget https://github.com/hunterlong/statping/releases/download/$VERSION/statping-linux-x64.tar.gz +tar -xvzf statping-linux-x64.tar.gz +chmod +x statping +mv statping /usr/local/bin/statping +``` +You can test the version number by running `statping version`. + # Instructions ### 1. Create an EC2 instance from AMI Image