mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-30 00:43:49 +00:00
Fix script execution compatibility with Alpine containers
- Add bash and full wget packages for script compatibility - Change script execution from /script to bash /script - Ensures GNU wget features work properly instead of busybox limitations - Scripts can now execute properly with PUID/PGID user mapping
This commit is contained in:
@@ -22,8 +22,8 @@ services:
|
|||||||
- |
|
- |
|
||||||
# Auto-detect package manager and install dependencies (as root)
|
# Auto-detect package manager and install dependencies (as root)
|
||||||
if command -v apk >/dev/null 2>&1; then
|
if command -v apk >/dev/null 2>&1; then
|
||||||
# Alpine Linux
|
# Alpine Linux - install full wget and bash for script compatibility
|
||||||
apk add --no-cache curl unzip wget ca-certificates p7zip jq
|
apk add --no-cache curl unzip wget bash ca-certificates p7zip jq
|
||||||
elif command -v apt-get >/dev/null 2>&1; then
|
elif command -v apt-get >/dev/null 2>&1; then
|
||||||
# Ubuntu/Debian
|
# Ubuntu/Debian
|
||||||
apt-get update && apt-get install -y --no-install-recommends curl unzip wget ca-certificates p7zip-full jq && rm -rf /var/lib/apt/lists/*
|
apt-get update && apt-get install -y --no-install-recommends curl unzip wget ca-certificates p7zip-full jq && rm -rf /var/lib/apt/lists/*
|
||||||
@@ -43,7 +43,7 @@ services:
|
|||||||
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
|
bash /tmp/download-client-data.sh
|
||||||
restart: "no"
|
restart: "no"
|
||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
@@ -199,7 +199,7 @@ services:
|
|||||||
command:
|
command:
|
||||||
- |
|
- |
|
||||||
# Install packages as root
|
# Install packages as root
|
||||||
apk add --no-cache curl
|
apk add --no-cache curl bash
|
||||||
|
|
||||||
# Set ownership for module directories
|
# Set ownership for module directories
|
||||||
mkdir -p /scripts
|
mkdir -p /scripts
|
||||||
@@ -210,7 +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
|
||||||
|
|
||||||
/tmp/manage-modules.sh
|
bash /tmp/manage-modules.sh
|
||||||
restart: "no"
|
restart: "no"
|
||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
|
|||||||
Reference in New Issue
Block a user