1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00
This commit is contained in:
Éric Gaspar 2024-06-24 14:41:58 +02:00
parent 5fb66f86cc
commit f67a0d8d85
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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"