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

pridany uvozovky k promennym

parent 9e18463a
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,7 @@ paramsChck() ...@@ -97,7 +97,7 @@ paramsChck()
oldPackageChck() oldPackageChck()
{ {
echo -n "Checking previous Warden server installation ... " echo -n "Checking previous Warden server installation ... "
old_package_version_file=$(find $basedir -name package_version) old_package_version_file=$(find "$basedir" -name package_version)
if [ -f "$old_package_version_file" ]; then if [ -f "$old_package_version_file" ]; then
echo "FAILED!" echo "FAILED!"
echo echo
...@@ -198,8 +198,8 @@ while getopts "d:k:c:a:s:Vh" options; do ...@@ -198,8 +198,8 @@ while getopts "d:k:c:a:s:Vh" options; do
done done
# remove last char (slash) from name of directories # remove last char (slash) from name of directories
[[ $basedir == */ ]] && basedir="${basedir%?}" [[ "$basedir" == */ ]] && basedir="${basedir%?}"
[[ $symbin == */ ]] && symbin="${symbin%?}" [[ "$symbin" == */ ]] && symbin="${symbin%?}"
# params test # params test
paramsChck paramsChck
...@@ -222,13 +222,13 @@ apache_conf_tmpl="${dirname}/etc/warden-apache.conf.tmpl" ...@@ -222,13 +222,13 @@ apache_conf_tmpl="${dirname}/etc/warden-apache.conf.tmpl"
watchdog_conf_tmpl="${dirname}/etc/warden-watchdog.conf.tmpl" watchdog_conf_tmpl="${dirname}/etc/warden-watchdog.conf.tmpl"
package_version=$(<"${dirname}/etc/package_version") package_version=$(<"${dirname}/etc/package_version")
manifest="${dirname}/doc/MANIFEST" manifest="${dirname}/doc/MANIFEST"
manifest="${dirname}/doc/MANIFEST"
echo echo
echo "----------------------- Checking for Dependencies -----------------------" echo "----------------------- Checking for Dependencies -----------------------"
# check if warden-server is installed # check if warden-server is installed
[[ ! -z $basedir ]] && [[ -d $basedir ]] && oldPackageChck [[ ! -z "$basedir" ]] && [[ -d "$basedir" ]] && oldPackageChck
# Perl interpreter test # Perl interpreter test
perlChck perlChck
...@@ -269,8 +269,8 @@ doTemplate \ ...@@ -269,8 +269,8 @@ doTemplate \
# create MANIFEST file # create MANIFEST file
createManifest createManifest
# crate symlinks from warden server bin to user path if -s option is set # crate symlinks from warden server bin to user path (if -s option is set)
[[ ! -z $symbin ]] && [[ -d $symbin ]] && [[ -w $symbin ]] && createSymlinks [[ ! -z "$symbin" ]] && [[ -d "$symbin" ]] && [[ -w "$symbin" ]] && createSymlinks
echo echo
echo "Please check configuration files:" echo "Please check configuration files:"
......
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