mirror of
https://gitlab.bmcstudios.org/public_projects/swg-server-docker.git
synced 2026-01-16 17:04:26 -05:00
Fixes to entrypoint for rpi
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
#!/bin/sh
|
||||
# entrypoint.sh
|
||||
|
||||
# Create a build.properties file to pass Docker env vars to the Ant build
|
||||
cat <<EOF > /swg-main/build.properties
|
||||
# === START: Create Local Properties ===
|
||||
# Create a local.properties file to pass Docker env vars to the Ant build.
|
||||
# This avoids overwriting the main build.properties file.
|
||||
cat <<EOF > /swg-main/local.properties
|
||||
# This file is auto-generated by entrypoint.sh
|
||||
db_username=${DB_USER}
|
||||
db_password=${DB_PASSWORD}
|
||||
dbip=${DB_HOST}
|
||||
db_service=${DB_SERVICE_NAME:-FREEPDB1}
|
||||
EOF
|
||||
# === END: Create Local Properties ===
|
||||
|
||||
|
||||
# Get the container's own IP address at runtime
|
||||
CONTAINER_IP=$(hostname -i)
|
||||
|
||||
Reference in New Issue
Block a user