mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 09:07:20 +00:00
fixes for portainer init
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user