2021-12-07 13:50:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-12-08 07:50:15 +00:00
|
|
|
function symlink_config_files() {
|
|
|
|
echo "Creating symlinks for config files"
|
|
|
|
rm /app/*.ini
|
2021-12-08 13:39:19 +00:00
|
|
|
ln -s /shared_configs/configs/authconfig.ini /app/authconfig.ini
|
|
|
|
ln -s /shared_configs/configs/chatconfig.ini /app/chatconfig.ini
|
|
|
|
ln -s /shared_configs/configs/masterconfig.ini /app/masterconfig.ini
|
|
|
|
ln -s /shared_configs/configs/worldconfig.ini /app/worldconfig.ini
|
2022-11-07 23:04:20 +00:00
|
|
|
ln -s /shared_configs/configs/sharedconfig.ini /app/sharedconfig.ini
|
2021-12-07 15:29:26 +00:00
|
|
|
}
|
|
|
|
|
2021-12-08 08:54:44 +00:00
|
|
|
if [[ ! -f "/app/initialized" ]]; then
|
|
|
|
# setup symlinks for volume files
|
|
|
|
symlink_config_files
|
|
|
|
# do not run symlinks more than once
|
|
|
|
touch /app/initialized
|
|
|
|
else
|
|
|
|
echo "Server already initialized"
|
|
|
|
fi
|
2021-12-07 15:29:26 +00:00
|
|
|
|
2021-12-08 07:50:15 +00:00
|
|
|
# start the server
|
2021-12-09 07:20:10 +00:00
|
|
|
echo "Starting MasterServer"
|
2021-12-07 15:29:26 +00:00
|
|
|
./MasterServer
|
2023-01-07 05:04:20 +00:00
|
|
|
tail -f /dev/null
|