From f67a0d8d85ec756880478d4ec9c1b21fcc69dc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:41:58 +0200 Subject: [PATCH] fix --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 416fe86..82f48d7 100644 --- a/scripts/install +++ b/scripts/install @@ -62,8 +62,8 @@ setup="{ pushd $install_dir npm install npm@latest --location=global - ynh_exec_as_app --preserve-env=PATH install lodash --save - ynh_exec_as_app --preserve-env=PATH $install_dir/nodebb setup "${setup}" 2>/dev/null + ynh_exec_as_app install lodash #--save + ynh_exec_as_app $install_dir/nodebb setup "${setup}" 2>/dev/null popd diff --git a/scripts/upgrade b/scripts/upgrade index defa2f6..43b00df 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,12 +20,12 @@ ynh_script_progression "Upgrading source files..." pushd $install_dir # Shut down your forum git config --system --add safe.directory $install_dir - ynh_exec_as_app --preserve-env=PATH $install_dir/nodebb stop + ynh_exec_as_app $install_dir/nodebb stop # Grab the latest and greatest code git fetch # Grab the latest code from the NodeBB Repository git reset --hard origin/$nodebb_version # Replace v1.12.x with the branch name! # Run the NodeBB upgrade script - ynh_exec_as_app --preserve-env=PATH $install_dir/nodebb upgrade 2>/dev/null + ynh_exec_as_app $install_dir/nodebb upgrade 2>/dev/null popd chmod -R o-rwx "$install_dir"