Skip to content
Snippets Groups Projects
Commit e0313f4c authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

uprava pro warden-server-2.1

parent 0c72c66e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
# Copyright (C) 2011-2012 Cesnet z.s.p.o
#
VERSION="2.0"
VERSION="2.1"
#-------------------------------------------------------------------------------
# FUNCTIONS
......@@ -93,7 +93,7 @@ obtain_package_version()
warden_dir_chck()
{
echo -n "Checking warden server directory ... "
echo -n "Checking Warden server directory ... "
if [ ! -d $server_path ]; then
echo "FAILED!"
ls $server_path
......@@ -106,14 +106,14 @@ warden_dir_chck()
stop_warden_server()
{
echo "Stopping warden server ... "
echo "Stopping Warden server ... "
${init} stop 1>/dev/null 2>&1
}
backup()
{
echo -n "Backing-up warden server directory ... "
echo -n "Backing-up Warden server directory ... "
mkdir $backup_dir
if cp -R ${server_path}/* $backup_dir 2> $err; then
echo "OK"
......@@ -168,6 +168,7 @@ params_chck
# create variables
[[ $prefix == */ ]] && prefix="${prefix%?}" # remove last char (slash) from prefix
dirname=`dirname $0`
server_path="${prefix}/warden-server"
bin="${server_path}/bin"
local_bin="/usr/local/bin"
......@@ -200,7 +201,9 @@ delete_symlinks
uninstall_warden_server
echo
echo "Uninstallation of $package_version package was SUCCESSFUL!!!"
echo "Uninstallation of $package_version package was SUCCESSFUL!"
echo
echo "Please follow post-uninstallation steps in ${dirname}/doc/UNINSTALL!"
# cleanup section
rm -rf $err $backup_dir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment