#!/bin/sh #if [ "$(netstat -tapn | grep 'apache2' | awk {'print $7'} | sed 's#^[0-9]*/##' | tail -1 )" = "apache2" ]; then if [ "$(netstat -tapn | grep 'apache2' | awk {'print $7'} | sed 's#^[0-9]*/##' | tail -1 )" = "apache2" ]; then if ! [ -f /etc/apache2/conf.d/x_disable_SSLv3.conf ]; then cat <> /etc/apache2/conf.d/x_disable_SSLv3.conf SSLProtocol all -SSLv2 -SSLv3 EOF /etc/init.d/apache2 restart fi fi exit 0 # for checking that service testssl.sh --poodle | grep POODLE