Dateien nach "/" hochladen

This commit is contained in:
Cap
2026-02-26 10:16:14 +01:00
parent 0df2332d35
commit 079740a062
5 changed files with 424 additions and 1 deletions

24
entrypoint.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
cd /home/container
echo "=== GameDig Server Status API ==="
# config.json prüfen
if [ ! -f "config.json" ]; then
echo "[FEHLER] config.json nicht gefunden!"
echo "[INFO] Bitte config.json über den Pterodactyl-Dateimanager anlegen."
echo "[INFO] Vorlage: https://gitea.cap-net.ch/Cap/gameserver-status-api/raw/branch/main/config.json"
exit 1
fi
# node_modules prüfen
if [ ! -d "node_modules/gamedig" ]; then
echo "[INFO] Installiere Node-Abhängigkeiten..."
npm install --omit=dev
echo "[INFO] Installation abgeschlossen."
fi
echo "[INFO] Starte server.js..."
echo ""
node /home/container/server.js