From cc7156aa73c4d610fd8531b07a356058d97a4c33 Mon Sep 17 00:00:00 2001 From: sysrenan Date: Tue, 4 Nov 2014 08:38:48 -0500 Subject: [PATCH 1/2] Add HTTPS support if cPanel Server doesn't support This will check if the server is running cPanel, then it will check if WGET has HTTPS support, if it doesn't it will remove the current WGET RPM and install it from YUM. --- fixbash | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fixbash b/fixbash index fd0a265..1013b28 100755 --- a/fixbash +++ b/fixbash @@ -46,6 +46,19 @@ if [ -z "$MAKE" ]; then exit 1 fi +# Only for cPanel Servers +if [ -f "/var/cpanel/cpanel.config" ]; then + # simple check for HTTPS support + wget --help | grep "HTTPS" + if [ $? -eq 1 ]; then + echo "HTTPS not supported" + echo "Removing WGET from yum.conf ignore list, removing it and reinstalling using YUM" + sed -i "s@wget\*@@g" /etc/yum.conf + rpm -e --nodeps wget + yum install wget + fi +fi + echo "Creating folders..." cd ~/ mkdir bash-shellshocker From 6833b29139f4c19b24f234b8a70cdde5b16b6465 Mon Sep 17 00:00:00 2001 From: sysrenan Date: Tue, 4 Nov 2014 08:46:39 -0500 Subject: [PATCH 2/2] Update fixbash --- fixbash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixbash b/fixbash index 1013b28..c836180 100755 --- a/fixbash +++ b/fixbash @@ -55,7 +55,7 @@ if [ -f "/var/cpanel/cpanel.config" ]; then echo "Removing WGET from yum.conf ignore list, removing it and reinstalling using YUM" sed -i "s@wget\*@@g" /etc/yum.conf rpm -e --nodeps wget - yum install wget + yum install wget -y fi fi