linkwarden: use npx for Playwright install command

Replaces 'yarn playwright install' with 'npx playwright install' in both update and install scripts to ensure consistent Playwright installation regardless of local yarn configuration.
This commit is contained in:
CanbiZ
2025-12-29 15:50:10 +01:00
parent 0cefe4c5c5
commit eba6fd8c6d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ function update_script() {
fi fi
$STD yarn $STD yarn
$STD npx playwright install-deps $STD npx playwright install-deps
$STD yarn playwright install $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
+1 -1
View File
@@ -49,7 +49,7 @@ if command -v corepack >/dev/null 2>&1; then
fi fi
$STD yarn $STD yarn
$STD npx playwright install-deps $STD npx playwright install-deps
$STD yarn playwright install $STD npx playwright install
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
cat <<EOF >/opt/linkwarden/.env cat <<EOF >/opt/linkwarden/.env
NEXTAUTH_SECRET=${SECRET_KEY} NEXTAUTH_SECRET=${SECRET_KEY}