[OODT-998] Added support to blank spaces in path of filemgr script
diff --git a/filemgr/src/main/bin/filemgr b/filemgr/src/main/bin/filemgr
index 1a8c416..297a8a3 100644
--- a/filemgr/src/main/bin/filemgr
+++ b/filemgr/src/main/bin/filemgr
@@ -73,19 +73,19 @@
$JAVA_HOME/bin/java \
-cp ${LIB_DEPS} \
${DISTRIBUTED_CONF_PROPERTIES} \
- -Dlog4j.configurationFile=${FILEMGR_HOME}/etc/log4j2.xml \
- -Djava.util.logging.config.file=${FILEMGR_HOME}/etc/logging.properties \
+ -Dlog4j.configurationFile="${FILEMGR_HOME}/etc/log4j2.xml" \
+ -Djava.util.logging.config.file="${FILEMGR_HOME}/etc/logging.properties" \
-Dorg.apache.oodt.cas.filemgr.properties=${CAS_FILEMGR_PROPS} \
org.apache.oodt.cas.filemgr.system.FileManagerServerMain \
--portNum $SERVER_PORT &
- echo $! > ${RUN_HOME}/cas.filemgr.pid
+ echo $! > "${RUN_HOME}/cas.filemgr.pid"
echo "OK"
sleep 5
;;
stop)
echo -n "Shutting down cas file manager: "
- kill `cat ${RUN_HOME}/cas.filemgr.pid`
- rm -f ${RUN_HOME}/cas.filemgr.pid
+ kill `cat "${RUN_HOME}/cas.filemgr.pid"`
+ rm -f "${RUN_HOME}/cas.filemgr.pid"
echo "OK"
;;
restart)
@@ -93,8 +93,8 @@
$0 start
;;
status)
- if [ -e ${RUN_HOME}/cas.filemgr.pid ] ; then
- pid=`cat ${RUN_HOME}/cas.filemgr.pid`
+ if [ -e "${RUN_HOME}/cas.filemgr.pid" ] ; then
+ pid=`cat "${RUN_HOME}/cas.filemgr.pid"`
echo "cas filemgr is running with pid: $pid"
else
echo "cas filemgr is not running"