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

uprava informativnich hlasek a napovedy

parent 519c8e30
No related branches found
No related tags found
No related merge requests found
...@@ -14,13 +14,13 @@ VERSION="2.2" ...@@ -14,13 +14,13 @@ VERSION="2.2"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
usage() usage()
{ {
echo "Usage: ${0##*/} -d <directory> -k <ssl_key_file> -c <ssl_cert_file> -a <ssl_ca_file> -e <email_address> [-s <directory>] [-hV]" echo "Usage: ${0##*/} -d <directory> -k <ssl_key> -c <ssl_cert> -a <ssl_ca_cert> -e <email_address> [-s <directory>] [-hV]"
echo "-d <directory> installation directory of Warden server" echo "-d <directory> Warden server installation directory"
echo "-k <ssl_key_file> path to SSL certificate key file" echo "-k <ssl_key> path to SSL key"
echo "-c <ssl_cert_file> path to SSL certificate file" echo "-c <ssl_cert> path to SSL certificate"
echo "-a <ssl_ca_file> path to CA certificate file" echo "-a <ssl_ca_cert> path to SSL CA certificate"
echo "-e <e-mail address> e-mail address to Warden server administrator" echo "-e <e-mail address> e-mail address to Warden server administrator"
echo "-s <directory> directory for symlinks to Warden server control scripts (optional)" echo "-s <directory> directory of symlinks to system control scripts (optional)"
echo "-h print this help" echo "-h print this help"
echo "-V print script version number and exit" echo "-V print script version number and exit"
echo echo
...@@ -175,7 +175,7 @@ createManifest() ...@@ -175,7 +175,7 @@ createManifest()
createSymlinks() createSymlinks()
{ {
echo -n "Checking symbolic links directory $symbin ... " echo -n "Checking symlinks directory $symbin ... "
if [[ -d $symbin && -w $symbin ]]; then if [[ -d $symbin && -w $symbin ]]; then
echo "OK" echo "OK"
for file in "${bin}/"* for file in "${bin}/"*
......
...@@ -15,8 +15,8 @@ VERSION="2.2" ...@@ -15,8 +15,8 @@ VERSION="2.2"
usage() usage()
{ {
echo "Usage: ${0##*/} -d <directory> [-s <directory>] [-hV]" echo "Usage: ${0##*/} -d <directory> [-s <directory>] [-hV]"
echo "-d <directory> uninstallation directory of Warden server" echo "-d <directory> Warden server to uninstall"
echo "-s <directory> directory for symlinks to Warden server control scripts (optional)" echo "-s <directory> directory of symlinks to system control scripts (optional)"
echo "-h print this help" echo "-h print this help"
echo "-V print script version number and exit" echo "-V print script version number and exit"
echo echo
...@@ -125,13 +125,15 @@ createBackup() ...@@ -125,13 +125,15 @@ createBackup()
removeSymlinks() removeSymlinks()
{ {
echo -n "Checking symbolic links directory $symbin ... " echo -n "Checking symlinks directory $symbin ... "
if [[ -d $symbin && -w $symbin ]]; then if [[ -d $symbin && -w $symbin ]]; then
echo "OK" echo "OK"
for file in "$bin/"* for file in "$bin/"*
do do
echo "- removing symlink: ${symbin}/${file##*/} -> $file" if [[ -f "${symbin}/${file##*/}" ]]; then
rm -f "${symbin}/${file##*/}" 2> /dev/null echo "- removing symlink: ${symbin}/${file##*/} -> $file"
rm -f "${symbin}/${file##*/}" 2> /dev/null
fi
done done
else else
echo "FAILED!" echo "FAILED!"
......
...@@ -14,13 +14,13 @@ VERSION="2.2" ...@@ -14,13 +14,13 @@ VERSION="2.2"
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
usage() usage()
{ {
echo "Usage: ${0##*/} -d <directory> [-hV]" echo "Usage: ${0##*/} -d <directory> [-s <directory>] [-hV]"
echo "-d <directory> destination directory of Warden server" echo "-d <directory> Warden server to update"
echo "-s <directory> directory for symlinks to Warden server control scripts (optional)" echo "-s <directory> directory of symlinks to system control scripts (optional)"
echo "-h print this help" echo "-h print this help"
echo "-V print script version number and exit" echo "-V print script version number and exit"
echo echo
echo "Example: $ ./${0##*/} -d /opt/warden-server" echo "Example: $ ./${0##*/} -d /opt/warden-server -s /usr/local/bin"
echo echo
echo "For more information about update process, see README file (section Update)." echo "For more information about update process, see README file (section Update)."
echo echo
...@@ -202,7 +202,7 @@ removeOldFiles() ...@@ -202,7 +202,7 @@ removeOldFiles()
createManifest() createManifest()
{ {
echo -n "Creating MANIFEST file ... " echo -n "Creating new MANIFEST file ... "
cd "$basedir" && find . -mindepth 2 -type f | sed 's/.\///' | sort > "${doc}/MANIFEST" && cd $OLDPWD 2> "$err" || errClean cd "$basedir" && find . -mindepth 2 -type f | sed 's/.\///' | sort > "${doc}/MANIFEST" && cd $OLDPWD 2> "$err" || errClean
echo "OK" echo "OK"
} }
...@@ -210,12 +210,12 @@ createManifest() ...@@ -210,12 +210,12 @@ createManifest()
createSymlinks() createSymlinks()
{ {
echo -n "Checking symbolic links directory $symbin ... " echo -n "Checking symlinks directory $symbin ... "
if [[ -d $symbin && -w $symbin ]]; then if [[ -d $symbin && -w $symbin ]]; then
echo "OK" echo "OK"
for file in "${bin}/"* for file in "${bin}/"*
do do
echo "- making symlink: ${symbin}/${file##*/} -> $file" echo "- updating symlink: ${symbin}/${file##*/} -> $file"
ln -s "$file" "${symbin}/${file##*/}" ln -s "$file" "${symbin}/${file##*/}"
done done
else else
......
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