From d621188eee011efa8381860ee953aadeefa9342a Mon Sep 17 00:00:00 2001 From: Deckard Date: Sun, 12 Oct 2025 15:23:13 -0400 Subject: [PATCH] fixes for portainer init --- docker-compose-azerothcore-database.yml | 6 ++---- scripts/setup-server.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/docker-compose-azerothcore-database.yml b/docker-compose-azerothcore-database.yml index eba1222..5513ac7 100644 --- a/docker-compose-azerothcore-database.yml +++ b/docker-compose-azerothcore-database.yml @@ -23,10 +23,8 @@ services: volumes: - ${STORAGE_PATH}/mysql-data:/var/lib/mysql-persistent - ${HOST_BACKUP_PATH}:/backups - - type: tmpfs - target: /var/lib/mysql-runtime - tmpfs: - size: 2G + tmpfs: + - /var/lib/mysql-runtime:size=2G command: - mysqld - --datadir=/var/lib/mysql-runtime diff --git a/scripts/setup-server.sh b/scripts/setup-server.sh index 74e4eab..f889af7 100755 --- a/scripts/setup-server.sh +++ b/scripts/setup-server.sh @@ -536,8 +536,8 @@ main() { sed -i "s#BACKUP_DAILY_TIME=.*#BACKUP_DAILY_TIME=${BACKUP_DAILY_TIME}#" docker-compose-azerothcore-database-custom.env sed -i "s#TZ=.*#TZ=${TIMEZONE}#" docker-compose-azerothcore-database-custom.env - # Toggle database images based on module selection - if [ "$MODULE_SELECTION_MODE" != "none" ]; then + # Toggle database images based on playerbots module selection + if [ "$MODULE_PLAYERBOTS" = "1" ]; then # Swap AC_DB_IMPORT_IMAGE to enable mod-playerbots database sed -i 's/\(AC_DB_IMPORT_IMAGE\)=\(.*\)/\1_TEMP=\2/' docker-compose-azerothcore-database-custom.env sed -i 's/\(AC_DB_IMPORT_IMAGE\)_DISABLED=\(.*\)/\1=\2/' docker-compose-azerothcore-database-custom.env @@ -557,8 +557,8 @@ main() { sed -i "s#SERVER_ADDRESS=.*#SERVER_ADDRESS=${SERVER_ADDRESS}#" docker-compose-azerothcore-services-custom.env sed -i "s#REALM_PORT=.*#REALM_PORT=${REALM_PORT}#" docker-compose-azerothcore-services-custom.env - # Toggle Docker images based on module selection - if [ "$MODULE_SELECTION_MODE" != "none" ]; then + # Toggle Docker images based on playerbots module selection + if [ "$MODULE_PLAYERBOTS" = "1" ]; then # Swap specific images that have _DISABLED variants sed -i 's/\(AC_AUTHSERVER_IMAGE\)=\(.*\)/\1_TEMP=\2/' docker-compose-azerothcore-services-custom.env sed -i 's/\(AC_AUTHSERVER_IMAGE\)_DISABLED=\(.*\)/\1=\2/' docker-compose-azerothcore-services-custom.env @@ -580,8 +580,8 @@ main() { # Substitute values in tools env file using a different delimiter sed -i "s#STORAGE_ROOT=.*#STORAGE_ROOT=${STORAGE_ROOT}#" docker-compose-azerothcore-tools-custom.env - # Toggle tools images based on module selection - if [ "$MODULE_SELECTION_MODE" != "none" ]; then + # Toggle tools images based on playerbots module selection + if [ "$MODULE_PLAYERBOTS" = "1" ]; then # Swap AC_TOOLS_IMAGE to enable mod-playerbots tools sed -i 's/\(AC_TOOLS_IMAGE\)=\(.*\)/\1_TEMP=\2/' docker-compose-azerothcore-tools-custom.env sed -i 's/\(AC_TOOLS_IMAGE\)_DISABLED=\(.*\)/\1=\2/' docker-compose-azerothcore-tools-custom.env