mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 22:13:35 +00:00
bad3845d83
* Implement a server res directory * Only convert if neither exist * Remove unzip, Update RegEx * readme updates Run setup after setting working dir Address several docker issues Revert "Run setup after setting working dir" This reverts commit fd2fb9228e82a350204c1ef61f7ba059479bb12f. Fix docker * Remove extra submodules * Rework logic * Switch if block * Remove need to extract fdb from client * Change log name * Update FdbToSqlite.cpp
26 lines
767 B
Bash
Executable File
26 lines
767 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function symlink_config_files() {
|
|
echo "Creating symlinks for config files"
|
|
rm /app/*.ini
|
|
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
|
|
ln -s /shared_configs/configs/sharedconfig.ini /app/sharedconfig.ini
|
|
}
|
|
|
|
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
|
|
|
|
# start the server
|
|
echo "Starting MasterServer"
|
|
./MasterServer
|
|
tail -f /dev/null
|