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