Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc fixes #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions informix_update_hostname.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion informix_update_onconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down