fix offline prepare scripts (#11962)

fix offline prepare scripts
This commit is contained in:
Jay.H
2025-06-15 23:28:58 +09:00
committed by GitHub
parent 1abadd8caa
commit 6fc1abba2e
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ fi
sudo "${runtime}" container inspect nginx >/dev/null 2>&1
if [ $? -ne 0 ]; then
sudo "${runtime}" run \
sudo --preserve-env=http_proxy,https_proxy,no_proxy "${runtime}" run \
--restart=always -d -p ${NGINX_PORT}:80 \
--volume "${OFFLINE_FILES_DIR}":/usr/share/nginx/html/download \
--volume "${CURRENT_DIR}"/nginx.conf:/etc/nginx/nginx.conf \