Created
September 3, 2015 14:09
-
-
Save tzermias/a2a6dc81094e7f8c2c83 to your computer and use it in GitHub Desktop.
Ansible fact for retrieving plesk version
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 | |
VERSION=$(awk '{print $1}' /usr/local/psa/version) | |
VERSION_MAJOR=$(echo $VERSION | cut -d'.' -f1) | |
cat <<EOF | |
{ | |
"plesk_version" : "$VERSION", | |
"plesk_version_major" : "$VERSION_MAJOR" | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment