mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-15 07:43:14 +01:00
wikijs: install backend npm deps on all archs, not just arm64
upstream stopped shipping backend/node_modules in the release tarball for any arch as of 3.3.1, so amd64 installs crash on boot with ERR_MODULE_NOT_FOUND. run npm ci unconditionally in install and update.
This commit is contained in:
1 parent
2c07e91fae
commit
a9631158e7
2 files changed
+7
-11
No files matched your search
+3
-5
@@ -45,11 +45,9 @@ function update_script() {
|
||||
restore_backup
|
||||
|
||||
cd /opt/wikijs/backend
|
||||
if [[ "$(arch_resolve)" == "arm64" ]]; then
|
||||
msg_info "Building Wiki.js Dependencies"
|
||||
$STD npm ci --omit=dev
|
||||
msg_ok "Built Wiki.js Dependencies"
|
||||
fi
|
||||
msg_info "Installing Wiki.js Dependencies"
|
||||
$STD npm ci --omit=dev
|
||||
msg_ok "Installed Wiki.js Dependencies"
|
||||
if [[ "$PUPPETEER_INSTALLED" == "true" ]]; then
|
||||
msg_info "Reinstalling Puppeteer"
|
||||
$STD npm install --no-save --force --include=optional --no-ignore-scripts --no-audit --no-fund "puppeteer@$(sed -n 's/^installVersion: *//p' modules/extensions/puppeteer/definition.yml)"
|
||||
|
||||
@@ -22,12 +22,10 @@ PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="wiki" PG_DB_USER="wikijs_user" setup_postgresql_db
|
||||
fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz"
|
||||
|
||||
if [[ "$(arch_resolve)" == "arm64" ]]; then
|
||||
msg_info "Building Wiki.js Dependencies"
|
||||
cd /opt/wikijs/backend
|
||||
$STD npm ci --omit=dev
|
||||
msg_ok "Built Wiki.js Dependencies"
|
||||
fi
|
||||
msg_info "Installing Wiki.js Dependencies"
|
||||
cd /opt/wikijs/backend
|
||||
$STD npm ci --omit=dev
|
||||
msg_ok "Installed Wiki.js Dependencies"
|
||||
|
||||
msg_info "Configuring Wiki.js"
|
||||
mkdir -p /opt/wikijs_data
|
||||
|
||||
Reference in new issue
Block a user