diff --git a/sim/cluster0/lab-seeds/backend/scripts/prepare-be-builder-dirs.sh b/sim/cluster0/lab-seeds/backend/scripts/prepare-be-builder-dirs.sh index 6fb8cdb..098722f 100755 --- a/sim/cluster0/lab-seeds/backend/scripts/prepare-be-builder-dirs.sh +++ b/sim/cluster0/lab-seeds/backend/scripts/prepare-be-builder-dirs.sh @@ -13,14 +13,17 @@ OTA_ROOT="${3:-/var/www/localhost/htdocs/apps/app/androidcast_project/ota-artifa mkdir -p "${BUILDS}" "${DOCKER_HOME}/.docker" "${DOWNLOADS}" "${OTA_ROOT}/v0/ota/channel" chown -R nginx:nginx "${BROADCAST_ROOT}" "${DOWNLOADS}" "${OTA_ROOT}" 2>/dev/null || true -chmod -R 775 "${BUILDS}" "${DOCKER_HOME}/.docker" "${DOWNLOADS}" "${OTA_ROOT}" 2>/dev/null || true +chmod -R 775 "${DOWNLOADS}" "${OTA_ROOT}" 2>/dev/null || true + +# PHP-FPM www pool is often nobody; artifact dirs must be writable by that user. +chown nobody:nginx "${BUILDS}" 2>/dev/null || true +chmod 2775 "${BUILDS}" 2>/dev/null || true +chown nobody:nobody "${DOCKER_HOME}/.docker" 2>/dev/null || true +chmod 775 "${DOCKER_HOME}/.docker" 2>/dev/null || true -# PHP-FPM www pool is often nobody; builds run as that user. if getent group docker >/dev/null 2>&1; then usermod -aG docker nobody 2>/dev/null || true fi -chown nobody:nobody "${DOCKER_HOME}/.docker" 2>/dev/null || true -chmod 775 "${DOCKER_HOME}/.docker" 2>/dev/null || true echo "Builder dirs ready:" echo " artifacts: ${BUILDS}" diff --git a/sim/cluster0/scripts/compose-lab-backend.sh b/sim/cluster0/scripts/compose-lab-backend.sh index 8ce6ba5..15d12e9 100755 --- a/sim/cluster0/scripts/compose-lab-backend.sh +++ b/sim/cluster0/scripts/compose-lab-backend.sh @@ -377,7 +377,7 @@ $config['build'] = array_merge([ 'scripts_dir' => '/var/www/ac/workspace/ac-scripts', 'notify' => [ 'admin_email' => 'bestcastr@gmail.com', - 'broadcast_config' => '/var/www/ac/workspace/ac-ms-broadcast/config/config.php', + 'broadcast_config' => '/var/www/ac/broadcast/config/config.php', ], ], $config['build'] ?? []); return $config;