Files
forge-kasm/custom_startup
Ryan Hamilton c8750a9e84
All checks were successful
Build & Push Forge-Kasm / docker (push) Successful in 30s
Add debug logging to indicate when the Forge startup script is running
2025-06-06 07:05:52 -05:00

21 lines
546 B
Bash

#!/bin/bash
set -e
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
# Optional: maximize Forge window
if [[ -x $STARTUPDIR/maximize_window.sh ]]; then
bash $STARTUPDIR/maximize_window.sh &
fi
# DEBUG: Create a file on desktop to indicate the script is running
if [[ -d $HOME/Desktop ]]; then
echo "Forge startup script is running" > $HOME/Desktop/forge_startup.log
else
echo "Forge startup script is running" > $HOME/forge_startup.log
fi
# Run Forge and wait for it to close
exec /opt/forge/start.sh