mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-29 16:15:45 +03:00
20 lines
662 B
Bash
20 lines
662 B
Bash
|
#!/bin/bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
# Setup default Opts
|
||
|
: ${NINJAM_CONFIG:=example.cfg}
|
||
|
: ${NINJAM_PORT:=2049}
|
||
|
: ${NINJAM_UID:=1337}
|
||
|
: ${NINJAM_ARCHIVE:=/app/archive}
|
||
|
: ${NINJAM_LOG:=/app/log}
|
||
|
: ${NINJAM_RUN:=/app/run}
|
||
|
: ${NINJAM_LOGFILE:=${NINJAM_LOG}/ninjamserver.log}
|
||
|
: ${NINJAM_PID:=${NINJAM_RUN}/ninjamserver.pid}
|
||
|
|
||
|
echo "======================================================"
|
||
|
echo "[NINJAM] Starting NINJAM Server..."
|
||
|
echo "======================================================"
|
||
|
|
||
|
cd ${NINJAM_BIN}
|
||
|
${NINJAM_BIN}/ninjamsrv ${NINJAM_CONFIG} -port ${NINJAM_PORT} -setuid ${NINJAM_UID} -archive ${NINJAM_ARCHIVE} -logfile ${NINJAM_LOGFILE} -pidfile ${NINJAM_PID}
|