>From 62c0a2924ef97c832dd02ac253e80e9223532522 Mon Sep 17 00:00:00 2001 From: Shawn Wells Date: Sun, 7 Jul 2013 03:52:51 -0400 Subject: [PATCH] Removed conditional statements from uninstall_telnet_server.sh, uninstall_xinetd.sh, uninstall_ypserv.sh Remediation should not have conditional statements (this is taken care of by OVAL) --- RHEL6/input/fixes/bash/uninstall_telnet_server.sh | 4 +--- RHEL6/input/fixes/bash/uninstall_xinetd.sh | 4 +--- RHEL6/input/fixes/bash/uninstall_ypserv.sh | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) mode change 100755 => 100644 RHEL6/input/fixes/bash/uninstall_telnet_server.sh mode change 100755 => 100644 RHEL6/input/fixes/bash/uninstall_xinetd.sh mode change 100755 => 100644 RHEL6/input/fixes/bash/uninstall_ypserv.sh diff --git a/RHEL6/input/fixes/bash/uninstall_telnet_server.sh b/RHEL6/input/fixes/bash/uninstall_telnet_server.sh old mode 100755 new mode 100644 index 2c93f60..73fdda1 --- a/RHEL6/input/fixes/bash/uninstall_telnet_server.sh +++ b/RHEL6/input/fixes/bash/uninstall_telnet_server.sh @@ -1,3 +1 @@ -if rpm -qa | grep -q telnet-server; then - yum -y remove telnet-server -fi +yum -y remove telnet-server diff --git a/RHEL6/input/fixes/bash/uninstall_xinetd.sh b/RHEL6/input/fixes/bash/uninstall_xinetd.sh old mode 100755 new mode 100644 index 593614d..fc63b48 --- a/RHEL6/input/fixes/bash/uninstall_xinetd.sh +++ b/RHEL6/input/fixes/bash/uninstall_xinetd.sh @@ -1,3 +1 @@ -if rpm -qa | grep -q xinetd; then - yum -y remove xinetd -fi +yum -y remove xinetd diff --git a/RHEL6/input/fixes/bash/uninstall_ypserv.sh b/RHEL6/input/fixes/bash/uninstall_ypserv.sh old mode 100755 new mode 100644 index d6897e1..c2b2048 --- a/RHEL6/input/fixes/bash/uninstall_ypserv.sh +++ b/RHEL6/input/fixes/bash/uninstall_ypserv.sh @@ -1,3 +1 @@ -if rpm -qa | grep -q ypserv; then - yum -y remove ypserv -fi +yum -y remove ypserv -- 1.7.1