geneshift/run.sh

12 lines
400 B
Bash
Raw Normal View History

2018-12-22 18:10:59 +00:00
#!/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