Skip to content

Commit

Permalink
use unique pattern for setup regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mjames-upc committed Aug 8, 2018
1 parent 792a58a commit ee8793e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -24,9 +24,9 @@ ebxml.registry.webserver.port=8082
# ebxml thrift service port
ebxml.thrift.service.port=9588
# EBXML registry host
ebxml.registry.host=external
ebxml.registry.host=external.fqdn
# NCF HOST
ncf.host=external
ncf.host=external.fqdn
# EBXML federation enable flag
ebxml.registry.federation.enabled=false
# EBXML registry webserver home
Expand Down
2 changes: 1 addition & 1 deletion edexOsgi/deploy.edex.awips2/esb/bin/setup.env
@@ -1,6 +1,6 @@
### EDEX localization related variables ###
export AW_SITE_IDENTIFIER=OAX
export EXT_ADDR=external
export EXT_ADDR=external.fqdn

# database names
export DC_DB_NAME=dc_ob7oax
Expand Down
4 changes: 2 additions & 2 deletions rpms/awips2.upc/Installer.awips/programs/edex
Expand Up @@ -224,11 +224,11 @@ edex_log() { # display todays log, default to ingest

# See /awips2/edex/bin/setup.env
edit_setup() {
sed -i.setup_$YMD 's/external/'$HOSTNAME'/g' $EDEX_ENV_FILE
sed -i.setup_$YMD 's/external.fqdn/'$HOSTNAME'/g' $EDEX_ENV_FILE
echo '[edit] '$HOSTNAME' added to '$EDEX_ENV_FILE
echo ' File backed up to '$EDEX_ENV_FILE'.setup_'$YMD
# registry/data delivery fqdn
sed -i 's/external/'$HOSTNAME'/g' /awips2/edex/conf/resources/*
sed -i 's/external.fqdn/'$HOSTNAME'/g' /awips2/edex/conf/resources/*.properties
}

edex_edits() {
Expand Down

0 comments on commit ee8793e

Please sign in to comment.