#!/bin/bash
#
#########################################################################################
# Script: 		absmenu_config.sh
# Description: 	Settings for absmenu.sh management script
# Author: 		ABS Laundry Business Solutions
# Version: 		9.08.00
#### Changelog of script ################################################################
# Date        Author    Version 	Change    
# 15-May-2011 JMI		1.0			Initial version
# 15-May-2011 JMI		1.3			Extended with properties backup server and location
#									Extended with property repository server and location
# 15-May-2011 AFA		2.4			Added SERVICEDELAY value for glassfish startup delay
# 27-Dec-2018 MBU		3.0			Added GFPARALLELENABLE and GFSNMPMAXAPPSTARTTIME for parallel web deployment
#									Added GFSTARTUPSNMPCHECK for SNMP check on startup
# 12-Feb-2024 RAY       6.0         Added Support for Tomee9 and Tomcat9; Tomee8 deprecated	
# 03-Apr-2024 RAY       9.08.00		Renamed version
# 25-Apr-2024 RAY       9.08.01     Added Support for Tomcat9 - ABS-164468
# 04-Nov-2024 RAY		9.09.00 	Absmenu update supporting Java21 for ABSSolute 9.09.00 - ABS-170835
# 04-Nov-2024 RAY		9.09.00 	Absmenu update supporting Plugins folder - INSTALLER-176
# 04-Nov-2024 RAY		9.09.00 	Absmenu update supporting Application Server new Classpath location - ABS-170842
#########################################################################################

#### Settings / parameters / variables that might need changing #########################
export ABS_ROOTSERVER=tomcat1.abssolute.net
export ABS_ROOTDIR=/abs
export ABSMENUBACKUPSERVER=tomcat1.abssolute.net
export ABSMENUBACKUPLOCATION=$ABS_ROOTDIR/absmenu/backups
export ABSMENUREPOSITORYSERVER=tomcat1.abssolute.net
export ABSMENUREPOSITORYLOCATION=$ABS_ROOTDIR/absmenu/repositories
export ABSFONTSREPOSITORY=$ABSMENUREPOSITORYLOCATION/static_zips
export SNMPTARGETADDRESS=127.0.0.1/162
export SNMPAGENTTIMERPERIODVALUE=0		# Default value of SNMP

#### Internal script settings ###########################################################
export ABSMENUPATH=$ABS_ROOTDIR/absmenu
export ABSMENUGLOBALCONFIG=$ABSMENUPATH/config/service_registration.cfg
export ABSMENUENVIRONMENTCONFIG=$ABSMENUPATH/config/environments.cfg
export ABSMENUCUSTOMCONFIG=$ABSMENUPATH/config/custom_properties.cfg
export ABSMENULOGPATH=$ABSMENUPATH/log
export ABSMSCRIPTLOGNAME=`date +"$ABSMENULOGPATH"/absmenu_%Y_%V.log`
export ABSM_DOAUTOBACKUP=Y
export SERVICEDELAY=160
export GFSTARTUPDELAY=Y                 # Set hard glassfish start delay.
export GFPARALLELENABLE=N               # Y = Run the web deploy in parallel
export GFSTARTUPSNMPCHECK=Y             # Check app. service SNMP code during startup. Overwrites GFSTARTUPDELAY value
export GFSNMPMAXAPPSTARTTIME=20         # Minutes after app service should give a valid SNMP status. If not the deploy will be skipped. Glassfish startup will continue.
export SLOTPOS=2                        # length (in chars) of a slotnumber.  i.e. 1 --> 1..9, 2 --> 01..99, 3 --> 001..999
#########################################################################################
