geneshift/run.sh
2018-12-22 19:10:59 +01:00

11 lines
400 B
Bash
Executable file

#!/usr/bin/dumb-init /bin/bash
set -euxo pipefail
config_path=/config
data_path=/opt/Geneshift/data
# When config files are provided link into game dir
[ -e "${config_path}/config.ini" ] && ln -sf ${config_path}/config.ini ${data_path}/config.ini
[ -e "${config_path}/weapons.ini" ] && ln -sf ${config_path}/weapons.ini ${data_path}/weapons.ini
exec gosu gameserver /opt/Geneshift/GeneshiftServer