Created
May 10, 2018 08:14
-
-
Save sergioska/e809aef8c0faaed52f25b554fbf88a5b to your computer and use it in GitHub Desktop.
VERSIONS AWS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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