fix(mediamanager): use npm install and remove unused yq dependency

- Use npm install instead of npm ci because upstream package-lock.json
  is out of sync with package.json (missing esbuild@0.27.2)
- Remove setup_yq call as yq is not used anywhere in the script
  (config is handled via sed)
This commit is contained in:
MickLesk
2025-12-22 20:38:28 +01:00
parent c0231a08c2
commit 22f4ce503f

View File

@ -18,7 +18,6 @@ if [[ "$admin_email" ]]; then
EMAIL="$admin_email" EMAIL="$admin_email"
fi fi
setup_yq
NODE_VERSION="24" setup_nodejs NODE_VERSION="24" setup_nodejs
setup_uv setup_uv
PG_VERSION="17" setup_postgresql PG_VERSION="17" setup_postgresql
@ -49,7 +48,7 @@ export PUBLIC_VERSION=""
export PUBLIC_API_URL="" export PUBLIC_API_URL=""
export BASE_PATH="/web" export BASE_PATH="/web"
cd /opt/mediamanager/web cd /opt/mediamanager/web
$STD npm ci --no-fund --no-audit $STD npm install --no-fund --no-audit
$STD npm run build $STD npm run build
mkdir -p {"$MM_DIR"/web,"$MEDIA_DIR","$CONFIG_DIR"} mkdir -p {"$MM_DIR"/web,"$MEDIA_DIR","$CONFIG_DIR"}
cp -r build "$FRONTEND_FILES_DIR" cp -r build "$FRONTEND_FILES_DIR"