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