mirror of
https://github.com/YunoHost-Apps/nodebb_ynh.git
synced 2024-09-03 19:46:29 +02:00
fix
This commit is contained in:
parent
5fb66f86cc
commit
f67a0d8d85
2 changed files with 4 additions and 4 deletions
|
@ -62,8 +62,8 @@ setup="{
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
npm install npm@latest --location=global
|
npm install npm@latest --location=global
|
||||||
ynh_exec_as_app --preserve-env=PATH install lodash --save
|
ynh_exec_as_app install lodash #--save
|
||||||
ynh_exec_as_app --preserve-env=PATH $install_dir/nodebb setup "${setup}" 2>/dev/null
|
ynh_exec_as_app $install_dir/nodebb setup "${setup}" 2>/dev/null
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
|
@ -20,12 +20,12 @@ ynh_script_progression "Upgrading source files..."
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
# Shut down your forum
|
# Shut down your forum
|
||||||
git config --system --add safe.directory $install_dir
|
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
|
# Grab the latest and greatest code
|
||||||
git fetch # Grab the latest code from the NodeBB Repository
|
git fetch # Grab the latest code from the NodeBB Repository
|
||||||
git reset --hard origin/$nodebb_version # Replace v1.12.x with the branch name!
|
git reset --hard origin/$nodebb_version # Replace v1.12.x with the branch name!
|
||||||
# Run the NodeBB upgrade script
|
# 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
|
popd
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
|
|
Loading…
Reference in a new issue