mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 00:58:34 +00:00
fixes for portainer init
This commit is contained in:
@@ -23,10 +23,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH}/mysql-data:/var/lib/mysql-persistent
|
- ${STORAGE_PATH}/mysql-data:/var/lib/mysql-persistent
|
||||||
- ${HOST_BACKUP_PATH}:/backups
|
- ${HOST_BACKUP_PATH}:/backups
|
||||||
- type: tmpfs
|
tmpfs:
|
||||||
target: /var/lib/mysql-runtime
|
- /var/lib/mysql-runtime:size=2G
|
||||||
tmpfs:
|
|
||||||
size: 2G
|
|
||||||
command:
|
command:
|
||||||
- mysqld
|
- mysqld
|
||||||
- --datadir=/var/lib/mysql-runtime
|
- --datadir=/var/lib/mysql-runtime
|
||||||
|
|||||||
@@ -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#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
|
sed -i "s#TZ=.*#TZ=${TIMEZONE}#" docker-compose-azerothcore-database-custom.env
|
||||||
|
|
||||||
# Toggle database images based on module selection
|
# Toggle database images based on playerbots module selection
|
||||||
if [ "$MODULE_SELECTION_MODE" != "none" ]; then
|
if [ "$MODULE_PLAYERBOTS" = "1" ]; then
|
||||||
# Swap AC_DB_IMPORT_IMAGE to enable mod-playerbots database
|
# 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\)=\(.*\)/\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
|
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#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
|
sed -i "s#REALM_PORT=.*#REALM_PORT=${REALM_PORT}#" docker-compose-azerothcore-services-custom.env
|
||||||
|
|
||||||
# Toggle Docker images based on module selection
|
# Toggle Docker images based on playerbots module selection
|
||||||
if [ "$MODULE_SELECTION_MODE" != "none" ]; then
|
if [ "$MODULE_PLAYERBOTS" = "1" ]; then
|
||||||
# Swap specific images that have _DISABLED variants
|
# 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\)=\(.*\)/\1_TEMP=\2/' docker-compose-azerothcore-services-custom.env
|
||||||
sed -i 's/\(AC_AUTHSERVER_IMAGE\)_DISABLED=\(.*\)/\1=\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
|
# 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
|
sed -i "s#STORAGE_ROOT=.*#STORAGE_ROOT=${STORAGE_ROOT}#" docker-compose-azerothcore-tools-custom.env
|
||||||
|
|
||||||
# Toggle tools images based on module selection
|
# Toggle tools images based on playerbots module selection
|
||||||
if [ "$MODULE_SELECTION_MODE" != "none" ]; then
|
if [ "$MODULE_PLAYERBOTS" = "1" ]; then
|
||||||
# Swap AC_TOOLS_IMAGE to enable mod-playerbots tools
|
# 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\)=\(.*\)/\1_TEMP=\2/' docker-compose-azerothcore-tools-custom.env
|
||||||
sed -i 's/\(AC_TOOLS_IMAGE\)_DISABLED=\(.*\)/\1=\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