mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00:00
fix(linkwarden): remove broken npx playwright install commands
Linkwarden's apps/web/package.json has a postinstall hook that runs 'playwright install --with-deps chromium' automatically during yarn install. The explicit 'npx playwright install-deps' and 'npx playwright install' are redundant and break under Yarn 4 PnP, where npx gets intercepted by Yarn's command resolution resulting in: Usage Error: Couldn't find a script named 'playwright'. Fixes #12586
This commit is contained in:
@@ -57,8 +57,6 @@ function update_script() {
|
|||||||
$STD corepack prepare "yarn@${yarn_ver}" --activate || true
|
$STD corepack prepare "yarn@${yarn_ver}" --activate || true
|
||||||
fi
|
fi
|
||||||
$STD yarn
|
$STD yarn
|
||||||
$STD npx playwright install-deps
|
|
||||||
$STD npx playwright install
|
|
||||||
mv /opt/.env /opt/linkwarden/.env
|
mv /opt/.env /opt/linkwarden/.env
|
||||||
$STD yarn prisma:generate
|
$STD yarn prisma:generate
|
||||||
$STD yarn web:build
|
$STD yarn web:build
|
||||||
|
|||||||
@@ -48,8 +48,6 @@ if command -v corepack >/dev/null 2>&1; then
|
|||||||
$STD corepack prepare "yarn@${yarn_ver}" --activate || true
|
$STD corepack prepare "yarn@${yarn_ver}" --activate || true
|
||||||
fi
|
fi
|
||||||
$STD yarn
|
$STD yarn
|
||||||
$STD npx playwright install-deps
|
|
||||||
$STD npx playwright install
|
|
||||||
cat <<EOF >/opt/linkwarden/.env
|
cat <<EOF >/opt/linkwarden/.env
|
||||||
NEXTAUTH_SECRET=${SECRET_KEY}
|
NEXTAUTH_SECRET=${SECRET_KEY}
|
||||||
NEXTAUTH_URL=http://${LOCAL_IP}:3000
|
NEXTAUTH_URL=http://${LOCAL_IP}:3000
|
||||||
|
|||||||
Reference in New Issue
Block a user