From 4368e69dab723a0d394f224946eb8f929cf9d0da Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sun, 18 Jan 2026 10:49:36 +0100 Subject: [PATCH] sfrdg --- install/dawarich-install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/install/dawarich-install.sh b/install/dawarich-install.sh index 332eb7f0c..ddebfdfd3 100644 --- a/install/dawarich-install.sh +++ b/install/dawarich-install.sh @@ -78,9 +78,13 @@ $STD bundle config set --local deployment 'true' $STD bundle config set --local without 'development test' $STD bundle install -cd /opt/dawarich -$STD npm install -cd /opt/dawarich/app +if [[ -f /opt/dawarich/package.json ]]; then + cd /opt/dawarich + $STD npm install + cd /opt/dawarich/app +elif [[ -f /opt/dawarich/app/package.json ]]; then + $STD npm install +fi $STD bundle exec rake assets:precompile $STD bundle exec rails db:prepare