diff --git a/src/warden-server/sh/install.sh b/src/warden-server/sh/install.sh index d82a702ba89518840405ad616215d999328e7a0a..6f382bdd76f92a60228a4905b85fe9ea0199d5ea 100755 --- a/src/warden-server/sh/install.sh +++ b/src/warden-server/sh/install.sh @@ -248,6 +248,21 @@ PerlSwitches -I $lib } +changeServerPath() +{ + echo "Update server path ..."; + for file in `ls -1 $bin` + do + echo "- update server path: ${bin}/$file" + perl -pi -e "s#/opt#${prefix}#" ${bin}/$file + done + + echo "- update server path: ${lib}/Warden.pm" + perl -pi -e "s#/opt#${prefix}#" ${lib}/Warden.pm + +} + + create_symlinks() { echo "Creating symbolic links ..." @@ -328,6 +343,9 @@ make_server_conf # create Apache configuration file make_apache_conf +#update paths in utilities +changeServerPath + # crate symlinks from warden server bin directory to /usr/local/bin create_symlinks