Fixed docker installation (#823)

This commit is contained in:
Jack Kawell 2022-11-07 16:04:20 -07:00 committed by GitHub
parent 2570c74b71
commit 7c2437173b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -30,6 +30,7 @@ function update_ini_values() {
cp resources/authconfig.ini /docker/configs/ cp resources/authconfig.ini /docker/configs/
cp resources/chatconfig.ini /docker/configs/ cp resources/chatconfig.ini /docker/configs/
cp resources/worldconfig.ini /docker/configs/ cp resources/worldconfig.ini /docker/configs/
cp resources/sharedconfig.ini /docker/configs/
update_ini worldconfig.ini chat_server_port $CHAT_SERVER_PORT update_ini worldconfig.ini chat_server_port $CHAT_SERVER_PORT
update_ini worldconfig.ini max_clients $MAX_CLIENTS update_ini worldconfig.ini max_clients $MAX_CLIENTS
@ -37,10 +38,7 @@ function update_ini_values() {
# always use the internal docker hostname # always use the internal docker hostname
update_ini masterconfig.ini master_ip "darkflame" update_ini masterconfig.ini master_ip "darkflame"
update_database_ini_values_for masterconfig.ini update_database_ini_values_for sharedconfig.ini
update_database_ini_values_for authconfig.ini
update_database_ini_values_for chatconfig.ini
update_database_ini_values_for worldconfig.ini
} }
function fdb_to_sqlite() { function fdb_to_sqlite() {

View File

@ -8,6 +8,8 @@ function symlink_client_files() {
ln -s /client/client/res/names/ /app/res/names ln -s /client/client/res/names/ /app/res/names
ln -s /client/client/res/CDServer.sqlite /app/res/CDServer.sqlite ln -s /client/client/res/CDServer.sqlite /app/res/CDServer.sqlite
ln -s /client/client/locale/locale.xml /app/locale/locale.xml ln -s /client/client/locale/locale.xml /app/locale/locale.xml
# need to create this file so the server knows the client is unpacked (see `dCommon/dClient/AssetManager.cpp`)
touch /app/res/cdclient.fdb
# need to iterate over entries in maps due to maps already being a directory with navmeshes/ in it # need to iterate over entries in maps due to maps already being a directory with navmeshes/ in it
( (
cd /client/client/res/maps cd /client/client/res/maps
@ -25,6 +27,7 @@ function symlink_config_files() {
ln -s /shared_configs/configs/chatconfig.ini /app/chatconfig.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/masterconfig.ini /app/masterconfig.ini
ln -s /shared_configs/configs/worldconfig.ini /app/worldconfig.ini ln -s /shared_configs/configs/worldconfig.ini /app/worldconfig.ini
ln -s /shared_configs/configs/sharedconfig.ini /app/sharedconfig.ini
} }
# check to make sure the setup has completed # check to make sure the setup has completed