1
Fork 0
mirror of https://github.com/Lovinoes/images.git synced 2024-12-21 16:37:45 -05:00

Create entrypoint.sh

This commit is contained in:
Lovinoes 2024-08-21 01:53:05 +02:00 committed by GitHub
parent 4505a41339
commit 3467180731
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

18
java-zulu/entrypoint.sh Normal file
View file

@ -0,0 +1,18 @@
#!/bin/bash
cd /home/container || exit 1
CYAN='\033[0;36m'
RESET_COLOR='\033[0m'
java -version
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Replace Startup Variables
# shellcheck disable=SC2086
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e "${CYAN}STARTUP /home/container: ${MODIFIED_STARTUP} ${RESET_COLOR}"
# shellcheck disable=SC2086
eval ${MODIFIED_STARTUP}