Skip to content
Snippets Groups Projects
Commit 4d285f5e authored by hammonds's avatar hammonds
Browse files

Change to allow changing the domain name using DM_DOMAIN_NAME in

setup.sh.  Still defaults to domain1 even if this is not set in the
setup.sh.
parent 64677b09
No related branches found
No related tags found
No related merge requests found
...@@ -32,14 +32,18 @@ if [ ! -f ${DM_ENV_FILE} ]; then ...@@ -32,14 +32,18 @@ if [ ! -f ${DM_ENV_FILE} ]; then
fi fi
. ${DM_ENV_FILE} > /dev/null . ${DM_ENV_FILE} > /dev/null
#Assign a default domain name to DM_DOMAIN_NAME. This can be modified by
# assigning in setup.sh.
DM_DOMAIN_NAME=${DM_DOMAIN_NAME:domain1}
export AS_JAVA=$DM_OPT_DIR/java/$DM_HOST_ARCH export AS_JAVA=$DM_OPT_DIR/java/$DM_HOST_ARCH
DM_PAYARA_DIR=$DM_OPT_DIR/payara DM_PAYARA_DIR=$DM_OPT_DIR/payara
DERBY_DIR=$DM_OPT_DIR/payara/javadb/bin DERBY_DIR=$DM_OPT_DIR/payara/javadb/bin
DM_DAEMON_NAME=payara DM_DAEMON_NAME=payara
DM_DAEMON_CONTROL_CMD=$DM_PAYARA_DIR/bin/asadmin DM_DAEMON_CONTROL_CMD=$DM_PAYARA_DIR/bin/asadmin
DM_DAEMON_START_ARGS="start-domain domain1" DM_DAEMON_START_ARGS="start-domain $DM_DOMAIN_NAME"
DM_DAEMON_STOP_ARGS="stop-domain domain1" DM_DAEMON_STOP_ARGS="stop-domain $DM_DOMAIN_NAME"
DM_DAEMON_STATUS_CMDS="uptime list-domains list-applications list-jdbc-resources" DM_DAEMON_STATUS_CMDS="uptime list-domains list-applications list-jdbc-resources"
start() { start() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment