HEX
Server: LiteSpeed
System: Linux CentOS-79-64-minimal 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: vishn3436 (5293)
PHP: 8.0.15
Disabled: NONE
Upload Files
File: //data/geometra3-server/glassfish-start.sh
#!/bin/sh

PID_FILE=$GLASSFISH_HOME/glassfish/domains/domain1/config/pid

# when deploying a directory, Glassfish expect all submodules to be extracted
# which is usually not the case for EARs
# zip app back into a bundle and let Glassfish handle it
rm -f /var/app/Dockerfile
rm -f /var/app/Dockerrun.aws.json
zip /var/app.zip -r .

asadmin start-domain
asadmin deploy --contextroot / --name current-app /var/app.zip

inotifywait -qq -e delete_self $PID_FILE