From 4789242d13ff7ea40a6c0d5f584c5f1ea3db1c73 Mon Sep 17 00:00:00 2001
From: Tomas Plesnik <plesnik@ics.muni.cz>
Date: Thu, 10 May 2012 13:08:38 +0200
Subject: [PATCH] odebrani kontroly OS Linux a shellu BASH

---
 src/warden-client/sh/install.sh   | 26 --------------------------
 src/warden-client/sh/uninstall.sh | 26 --------------------------
 src/warden-client/sh/update.sh    | 26 --------------------------
 3 files changed, 78 deletions(-)

diff --git a/src/warden-client/sh/install.sh b/src/warden-client/sh/install.sh
index 726318b..d276dfa 100755
--- a/src/warden-client/sh/install.sh
+++ b/src/warden-client/sh/install.sh
@@ -87,26 +87,6 @@ err_clean()
 }
 
 
-os_chck()
-{
-	OS=`uname`
-	if [ "$OS" != "Linux" ]; then
-		echo "Sorry, unsupported operating system detected - \"$OS\"!"
-		exit 1
-	fi
-}
-
-
-shell_chck()
-{
-	SHELL=`echo $SHELL`
-	if [ "$SHELL" != "/bin/bash" ]; then
-		echo "Sorry, this script is usable in Bourne Again Shell (bash) only!"
-		exit 1
-	fi
-}
-
-
 root_chck()
 {
 	if [ $UID -ne 0 ]; then
@@ -281,12 +261,6 @@ change_permissions()
 # list of used Perl modules
 modules=(SOAP::Lite IO::Socket::SSL SOAP::Transport::TCP FindBin DateTime)
 
-# OS test
-os_chck
-
-# Shell test
-shell_chck
-
 # read input
 while getopts "d:u:k:c:a:Vh" options; do
 	case $options in
diff --git a/src/warden-client/sh/uninstall.sh b/src/warden-client/sh/uninstall.sh
index a76d464..a67a885 100755
--- a/src/warden-client/sh/uninstall.sh
+++ b/src/warden-client/sh/uninstall.sh
@@ -84,26 +84,6 @@ err_clean()
 }
 
 
-os_chck()
-{
-	OS=`uname`
-	if [ "$OS" != "Linux" ]; then
-		echo "Sorry, unsupported operating system detected - \"$OS\"!"
-		exit 1
-	fi
-}
-
-
-shell_chck()
-{
-	SHELL=`echo $SHELL`
-	if [ "$SHELL" != "/bin/bash" ]; then
-		echo "Sorry, this script is usable in Bourne Again Shell (bash) only!"
-		exit 1
-	fi
-}
-
-
 root_chck()
 {
 	if [ $UID -ne 0 ]; then
@@ -171,12 +151,6 @@ uninstall_warden_client()
 #				MAIN
 #-------------------------------------------------------------------------------
 
-# OS test
-os_chck
-
-# Shell test
-shell_chck
-
 # read input
 while getopts "d:Vh" options; do
 	case $options in
diff --git a/src/warden-client/sh/update.sh b/src/warden-client/sh/update.sh
index cd994b2..395f28d 100755
--- a/src/warden-client/sh/update.sh
+++ b/src/warden-client/sh/update.sh
@@ -86,26 +86,6 @@ err_clean()
 }
 
 
-os_chck()
-{
-	OS=`uname`
-	if [ "$OS" != "Linux" ]; then
-		echo "Sorry, unsupported operating system detected - \"$OS\"!"
-		exit 1
-	fi
-}
-
-
-shell_chck()
-{
-	SHELL=`echo $SHELL`
-	if [ "$SHELL" != "/bin/bash" ]; then
-		echo "Sorry, this script is usable in Bourne Again Shell (bash) only!"
-		exit 1
-	fi
-}
-
-
 root_chck()
 {
 	if [ $UID -ne 0 ]; then
@@ -286,12 +266,6 @@ change_permissions()
 # list of used Perl modules
 modules=(SOAP::Lite IO::Socket::SSL SOAP::Transport::TCP FindBin DateTime)
 
-# OS test
-os_chck
-
-# Shell test
-shell_chck
-
 # read input
 while getopts "d:Vh" options; do
 	case $options in
-- 
GitLab