diff --git a/src/warden-client/sh/uninstall.sh b/src/warden-client/sh/uninstall.sh index d70f01e4d24f8554cbd901511dbca36b49fe3f2c..ac4832fb8fccf4c465bd2f7b18763c6b86765c8c 100755 --- a/src/warden-client/sh/uninstall.sh +++ b/src/warden-client/sh/uninstall.sh @@ -132,30 +132,19 @@ obtain_package_version() } -uninstallation_dir_chck() -{ - echo -n "Checking uninstallation directory ... " - if [ ! -d $prefix ]; then - echo "FAILED!" - ls $prefix - exit 1 - else - echo "OK" - fi -} - warden_dir_chck() { echo -n "Checking warden client directory ... " if [ ! -d $client_path ]; then echo "FAILED!" - ls $prefix + ls $client_path exit 1 else echo "OK" fi } + backup() { echo -n "Backing-up warden client directory ... " @@ -168,6 +157,7 @@ backup() fi } + uninstall_warden_client() { echo -n "Uninstalling $package_version package ... " @@ -219,9 +209,6 @@ obtain_package_version echo echo "------------------------- Uninstallation process --------------------------------" -# check if $prefix directory exist -uninstallation_dir_chck - # check if $prefix/warden-client directory exist warden_dir_chck