Skip to content

Instantly share code, notes, and snippets.

@sergioska
Created May 10, 2018 08:14
Show Gist options
  • Save sergioska/e809aef8c0faaed52f25b554fbf88a5b to your computer and use it in GitHub Desktop.
Save sergioska/e809aef8c0faaed52f25b554fbf88a5b to your computer and use it in GitHub Desktop.
VERSIONS AWS
#!/bin/bash
EMI=/etc/issue
NODE=`which node`
NPM=`which npm`
APACHE=httpd
echo AMI VERSION: `cat $EMI | grep -Eo [0-9\.]+`
echo NODE VERSION: `$NODE -v`
echo NPM VERSION: `$NPM -v`
echo APACHE: `$APACHE -v | grep -Eo [0-9\.]+ | head -n 1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment