mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-27 07:26:24 +00:00
Improve client data container: add 7z, root access, and ownership fix
- Run container as root during extraction to avoid permission issues - Install p7zip-full for faster 7z extraction vs unzip - Fix file ownership after extraction using chown - Remove problematic retry logic that was causing corruption issues - Keep reliable original script with version detection and caching
This commit is contained in:
@@ -283,7 +283,7 @@ services:
|
|||||||
profiles: ["client-data-bots"]
|
profiles: ["client-data-bots"]
|
||||||
image: ${AC_CLIENT_DATA_IMAGE_PLAYERBOTS}
|
image: ${AC_CLIENT_DATA_IMAGE_PLAYERBOTS}
|
||||||
container_name: ac-client-data
|
container_name: ac-client-data
|
||||||
user: "${CONTAINER_USER}"
|
user: "0:0"
|
||||||
depends_on:
|
depends_on:
|
||||||
ac-volume-init:
|
ac-volume-init:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
@@ -299,10 +299,15 @@ services:
|
|||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
|
echo "📦 Installing 7z for faster extraction..."
|
||||||
|
apt-get update -qq && apt-get install -y p7zip-full
|
||||||
mkdir -p /cache
|
mkdir -p /cache
|
||||||
if [ -f /tmp/scripts/download-client-data.sh ]; then
|
if [ -f /tmp/scripts/download-client-data.sh ]; then
|
||||||
chmod +x /tmp/scripts/download-client-data.sh 2>/dev/null || true
|
chmod +x /tmp/scripts/download-client-data.sh 2>/dev/null || true
|
||||||
bash /tmp/scripts/download-client-data.sh
|
bash /tmp/scripts/download-client-data.sh
|
||||||
|
echo "🔧 Fixing ownership of extracted files..."
|
||||||
|
chown -R ${CONTAINER_USER} /azerothcore/data
|
||||||
|
echo "✅ Client data extraction and ownership setup complete"
|
||||||
else
|
else
|
||||||
echo "No local client-data script"
|
echo "No local client-data script"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user