# Disclaimer: 
# This information are provided "AS IS" without warranty of any kind, either expressed or implied. 
# The entire risk arising out of the use or performance of the script and documentation remains with you. 
# Furthermore, Worldline or the author shall not be liable for any damages you may sustain by using this information, 
# whether direct, indirect, special, incidental or consequential, including, without limitation, damages for loss of business profits,
# business interruption, loss of business information or other pecuniary loss even if it has been advised of the possibility of such damages.
# Read all the implementation and usage notes thoroughly.

Note: for the following it relates to boom Agent 5.10.0 (Multi-Release JAR)

Handling boom Agent silent installation/update for Linux (non-root) and Windows agent systems:
- install_boom_LinuxAgent.sh is a Unix Shell script performing non-interactive the following
		check availability of Java (1.8 or 17 or 21) and abort if not present
		create non-root user
		generate sudoers-config
		unzip agent software (linux32|64_boom_agent.zip)
		install agent
		start agent
		check start result

	Hint: when starting script with option "-u" an un-installation will be performed
		stop agent
		delete installation directory
		remove sudoers-config
		delete non-root user

- update_boom_LinuxAgent.sh is a Unix Shell script performing non-interactive the following
		check availability of Java (1.8 or 17 or 21) and abort if not present
		unzip agent software (linux32|64_boom_agent.zip)
		replace boom_agent.jar
		restart agent
		

- install_boom_WindowsAgent.bat is a Windows batch file performing the following
		check availability of Java (1.8 or 17 or 21) and abort if not present
		unzip agent software (windows32|64_boom_agent.zip)
		install agent
		start agent
		check start result

	Hint: when starting batch with option "-u" an un-installation will be performed
		stop agent
		delete installation directory

- update_boom_WindowsAgent.bat is a Windows batch file performing non-interactive the following
		check availability of Java (1.8 or 17 or 21) and abort if not present
		unzip agent software (windows32|64_boom_agent.zip)
		replace boom_agent.jar
		restart agent
		
		

Proceeding:
1. generate actually agent software Zip-File by downloading it from that boom server, which should control boom agent
2. transfer agent software Zip-File to agent system (e.g. /tmp or \temp)
3. transfer OS related install or update script to agent system (must be the directory including agent software Zip-File)
4. you can customize paths or users by changing following variables inside scripts
	Linux:
		cmd_agent_path=/opt/boom/agent
		cmd_user_name=boom
		cmd_user_group=boom
		user_id=""
		group_id=""
		cmd_agent_zip=linux64_boom_agent.zip
		java_path=${JAVA_HOME_BOOM}  	#Note: variable $JAVA_HOME_BOOM has to be set to related Java path in that Shell 
										which starts the script; if not, >>java_path<< consumes Java path from common 
										environment variable "PATH". Furthermore agent's configuration file boom_agt.cfg 
										will be provided with updated variable setting "JAVA_BIN=$JAVA_PATH" (internally 
										done by "install -j" execution) consumed by agent's start-stop script by boom_agt.

	Windows:
		INSTALLDIR="%ProgramFiles%\boom\agent" 
		JAVA_PATH="%JAVA_HOME_BOOM%"  	#Note: variable %JAVA_HOME_BOOM% has to be set to related Java path in
										Windows Environment before starting script; if not, >>JAVA_PATH<< consumes 
										Java path from PATH system variable. Furthermore service's configuration file 
										boom_service.cfg will be provided with variable setting "JAVA_PATH=%JAVA_PATH%" 
										consumed by agent's start-stop script boom_agt.cmd.
		
5. start install or update script as Root user (Linux) or Administrator (Windows)

