mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-29 00:13:47 +00:00
Fix container permissions and update timezone default
Container fixes: - Remove complex su user switching that fails due to missing user - Run scripts as root but ensure file ownership matches NFS mapping - Simplifies deployment and allows package installation to succeed Setup script: - Change default timezone from UTC to America/New_York
This commit is contained in:
@@ -39,13 +39,11 @@ services:
|
|||||||
mkdir -p /cache
|
mkdir -p /cache
|
||||||
chown ${CONTAINER_USER} /cache /azerothcore/data 2>/dev/null || true
|
chown ${CONTAINER_USER} /cache /azerothcore/data 2>/dev/null || true
|
||||||
|
|
||||||
# Download and execute client data script from GitHub as mapped user
|
# Download and execute client data script from GitHub
|
||||||
echo "📥 Downloading client data script from GitHub..."
|
echo "📥 Downloading client data script from GitHub..."
|
||||||
curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/download-client-data.sh -o /tmp/download-client-data.sh
|
curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/download-client-data.sh -o /tmp/download-client-data.sh
|
||||||
chmod +x /tmp/download-client-data.sh
|
chmod +x /tmp/download-client-data.sh
|
||||||
|
/tmp/download-client-data.sh
|
||||||
# Switch to mapped user for file operations
|
|
||||||
su -s /bin/sh $${CONTAINER_USER%%:*} -c '/tmp/download-client-data.sh' || /tmp/download-client-data.sh
|
|
||||||
restart: "no"
|
restart: "no"
|
||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
@@ -212,8 +210,7 @@ services:
|
|||||||
curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/manage-modules-sql.sh -o /scripts/manage-modules-sql.sh
|
curl -fsSL https://raw.githubusercontent.com/uprightbass360/acore-compose/main/scripts/manage-modules-sql.sh -o /scripts/manage-modules-sql.sh
|
||||||
chmod +x /tmp/manage-modules.sh /scripts/manage-modules-sql.sh
|
chmod +x /tmp/manage-modules.sh /scripts/manage-modules-sql.sh
|
||||||
|
|
||||||
# Run module management as mapped user
|
/tmp/manage-modules.sh
|
||||||
su -s /bin/sh $${CONTAINER_USER%%:*} -c '/tmp/manage-modules.sh' || /tmp/manage-modules.sh
|
|
||||||
restart: "no"
|
restart: "no"
|
||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ main() {
|
|||||||
BACKUP_DAILY_TIME=$(prompt_input "Daily backup time (24h format, e.g., 09 for 9 AM)" "09" "")
|
BACKUP_DAILY_TIME=$(prompt_input "Daily backup time (24h format, e.g., 09 for 9 AM)" "09" "")
|
||||||
|
|
||||||
# Optional: Timezone
|
# Optional: Timezone
|
||||||
TIMEZONE=$(prompt_input "Server timezone" "UTC" "")
|
TIMEZONE=$(prompt_input "Server timezone" "America/New_York" "")
|
||||||
|
|
||||||
# Module Configuration
|
# Module Configuration
|
||||||
print_status "HEADER" "MODULE CONFIGURATION"
|
print_status "HEADER" "MODULE CONFIGURATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user