Initial Valheim dedicated server container with web UI scaffold
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
VALHEIM_SERVER_DIR=${VALHEIM_SERVER_DIR:-/opt/valheim}
|
||||
STEAMCMD_DIR=${STEAMCMD_DIR:-/opt/steamcmd}
|
||||
|
||||
echo "=== Updating Valheim Dedicated Server via SteamCMD ==="
|
||||
${STEAMCMD_DIR}/steamcmd.sh +login anonymous \
|
||||
+force_install_dir ${VALHEIM_SERVER_DIR} \
|
||||
+app_update 896660 validate \
|
||||
+quit
|
||||
|
||||
echo "=== Starting Web Management Interface ==="
|
||||
# Placeholder — you will replace with your actual web UI
|
||||
python3 /opt/webui/server.py &
|
||||
|
||||
echo "=== Starting Valheim Server ==="
|
||||
cd ${VALHEIM_SERVER_DIR}
|
||||
|
||||
./valheim_server.x86_64 \
|
||||
-name "${SERVER_NAME}" \
|
||||
-port 2456 \
|
||||
-world "${WORLD_NAME}" \
|
||||
-password "${SERVER_PASSWORD}" \
|
||||
-public 1
|
||||
Reference in New Issue
Block a user