Skip to content

Instantly share code, notes, and snippets.

@zhimsel
Created June 19, 2014 01:20
Show Gist options
  • Save zhimsel/c060f40fdbb952734a46 to your computer and use it in GitHub Desktop.
Save zhimsel/c060f40fdbb952734a46 to your computer and use it in GitHub Desktop.
openssl update script
#!/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