From cac02e1834b99e71b5287321f6cfdd41b7afc96f Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 8 Jul 2017 18:13:40 +0200 Subject: [PATCH] Update install --- scripts/install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 27a4e3b..06fee36 100644 --- a/scripts/install +++ b/scripts/install @@ -171,9 +171,11 @@ sudo sed -i "s@dbpass@$dbpass@g" $final_path/config.json # CONFIGURE NODEBB #================================================= -pushd "$final_path" +pushd $final_path +ynh_use_nodejs sudo chown -R $app: $final_path -sudo ./nodebb setup <<< \ +sudo_path npm install --production >> $install_log 2>&1 +sudo_path ./nodebb setup <<< \ "$admin_name" popd