diff --git a/build b/build index 1b9ee15..2c5580a 100644 --- a/build +++ b/build @@ -16,7 +16,7 @@ docker build -t ${TAG_IFX}-prune -f Dockerfile.prune . ### Pull out Informix Only. docker run --name temp-ifx-prune ${TAG_IFX}-prune /bin/true docker cp temp-ifx-prune:/tmp/informix.prune.tar . -docker cp temp-ifx-prune:/opt/ibm/dinit . +docker cp temp-ifx-prune:/opt/ibm/scripts/dinit . docker rm temp-ifx-prune ### Build Final Image diff --git a/informix_update_hostname.sh b/informix_update_hostname.sh index 376233f..f62cfde 100644 --- a/informix_update_hostname.sh +++ b/informix_update_hostname.sh @@ -9,8 +9,12 @@ ### SQLHOSTS file contains the previous HOSTNAME value ### old_hostname=`grep "HOST NAME" $INFORMIXSQLHOSTS |awk '{print $5}' ` -#sed -i "s/${old_hostname}/${HOSTNAME}/g" $INFORMIXSQLHOSTS -sed -i "s/${old_hostname}/${HOSTNAME}/g" $INFORMIX_CONFIG_DIR/sqlhosts +if [[ $env_STORAGE == "LOCAL" ]] +then + sed -i "s/${old_hostname}/${HOSTNAME}/g" $INFORMIXSQLHOSTS +else + sed -i "s/${old_hostname}/${HOSTNAME}/g" $INFORMIX_CONFIG_DIR/sqlhosts +fi ### Update HOSTNAME in WL config file diff --git a/informix_update_onconfig.sh b/informix_update_onconfig.sh index 7c1b92c..95690ff 100644 --- a/informix_update_onconfig.sh +++ b/informix_update_onconfig.sh @@ -52,7 +52,7 @@ do cnt=`sed -n "/^${line}/p" $INFORMIXDIR/etc/$ONCONFIG |wc -l` if [[ $cnt == "0" ]] then - echo $line >> $$INFORMIXDIR/etc/$ONCONFIG + echo $line >> $INFORMIXDIR/etc/$ONCONFIG fi fi