Created
June 19, 2014 01:20
-
-
Save zhimsel/c060f40fdbb952734a46 to your computer and use it in GitHub Desktop.
openssl update script
This file contains hidden or 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 | |
while read server; do | |
ssh $server 'ps cax | grep httpd > /dev/null; if [ $? -eq 0 ]; then echo "httpd is running"; yum update -y openssl && service httpd restart ; else echo "httpd is not running"; yum update -y openssl; fi' | |
done < $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment