fix(outline): prevent corepack interactive prompt blocking installation (#10973)

- Add COREPACK_ENABLE_DOWNLOAD_PROMPT=0 to skip yarn download confirmation
- Fixes installation hanging on 'Configuring Outline (Patience)'
This commit is contained in:
CanbiZ (MickLesk)
2026-01-19 21:46:18 +01:00
committed by GitHub
parent c8c1c454ce
commit 0edd8fcfe3
2 changed files with 4 additions and 2 deletions

View File

@@ -41,16 +41,17 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "outline" "outline/outline" "tarball"
msg_info "Updating ${APP}"
msg_info "Updating Outline"
cd /opt/outline
mv /opt/.env /opt/outline
export NODE_ENV=development
export NODE_OPTIONS="--max-old-space-size=3584"
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
$STD corepack enable
$STD yarn install --immutable
export NODE_ENV=production
$STD yarn build
msg_ok "Updated ${APP}"
msg_ok "Updated Outline"
msg_info "Starting Services"
systemctl start outline

View File

@@ -38,6 +38,7 @@ sed -i 's/redis:6379/localhost:6379/g' /opt/outline/.env
sed -i "5s#URL=#URL=http://${LOCAL_IP}#g" /opt/outline/.env
sed -i 's/FORCE_HTTPS=true/FORCE_HTTPS=false/g' /opt/outline/.env
export NODE_OPTIONS="--max-old-space-size=3584"
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
$STD corepack enable
$STD yarn install --immutable
export NODE_ENV=production