Browse Source

Merge pull request #9734 from Michael-Gardner/HPCC-17226

HPCC-17226 Path change in configmgr awk call

Reviewed-By: Xiaoming Wang <xiaoming.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 years ago
parent
commit
28587c9e9e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      initfiles/sbin/configmgr.in

+ 2 - 1
initfiles/sbin/configmgr.in

@@ -27,7 +27,8 @@ source ${INSTALL_DIR}/etc/init.d/hpcc_common
 
 
 createConf ()
 createConf ()
 {
 {
-    awk -f ${reg_path}/regex.awk -v NEW_ENVFILE=$1 -v NEW_PORT=$2 -v NEW_CONFFILE=$3< ${path}${configs}/configmgr/esp.xml >${runtime}/${compName}/esp.xml
+    dir_name=$(basename ${INSTALL_DIR})
+    awk -f ${reg_path}/regex.awk -v NEW_ENVFILE=$1 -v NEW_PORT=$2 -v NEW_CONFFILE=$3< ${path}/etc/${dir_name}/configmgr/esp.xml >${runtime}/${compName}/esp.xml
 }
 }