darkflameserver/start.sh

31 lines
1.3 KiB
Bash
Raw Normal View History

2023-11-08 18:16:50 +01:00
#!/usr/bin/env sh
2023-11-08 19:16:55 +01:00
set -eu
2023-11-07 22:39:38 +01:00
echo "-----------------------"
echo "DarkflameServer Docker"
echo "written by Aaron Riedel"
echo "-----------------------"
echo ""
echo "create sharedconfig.ini"
# make sharedconfig.ini
2023-11-10 21:23:48 +01:00
echo "mysql_host=$MYSQL_HOST" > ${HOMEDIR}/app/sharedconfig.ini
echo "mysql_database=$MYSQL_DATABASE" >> ${HOMEDIR}/app/sharedconfig.ini
echo "mysql_username=$MYSQL_USERNAME" >> ${HOMEDIR}/app/sharedconfig.ini
echo "mysql_password=$MYSQL_PASSWORD" >> ${HOMEDIR}/app/sharedconfig.ini
echo "log_to_console=1" >> ${HOMEDIR}/app/sharedconfig.ini
echo "log_debug_statements=0" >> ${HOMEDIR}/app/sharedconfig.ini
echo "external_ip=142.132.219.61" >> ${HOMEDIR}/app/sharedconfig.ini
echo "dont_generate_dcf=0" >> ${HOMEDIR}/app/sharedconfig.ini
echo "max_clients=$MAX_CLIENTS" >> ${HOMEDIR}/app/sharedconfig.ini
echo "dump_folder=/dev/null" >> ${HOMEDIR}/app/sharedconfig.ini
echo "client_location=/client" >> ${HOMEDIR}/app/sharedconfig.ini
2023-11-10 23:18:41 +01:00
echo "maximum_outgoing_bandwidth=0" >> ${HOMEDIR}/app/sharedconfig.ini
2023-11-10 21:23:48 +01:00
echo "maximum_mtu_size=1228" >> ${HOMEDIR}/app/sharedconfig.ini
echo "client_net_version=$CLIENT_VERSION" >> ${HOMEDIR}/app/sharedconfig.ini
echo "default_team_loot=$TEAM_LOOT" >> ${HOMEDIR}/app/sharedconfig.ini
2023-11-07 22:58:42 +01:00
2023-11-08 19:01:10 +01:00
echo "set folder for shared libaries"
2023-11-10 21:23:48 +01:00
export LD_LIBRARY_PATH=${HOMEDIR}/app
2023-11-07 22:58:42 +01:00
echo "start Server"
2023-11-10 21:23:48 +01:00
${HOMEDIR}/app/MasterServer
2023-11-07 23:00:21 +01:00
tail -f /dev/null