1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-08-31 22:41:28 +02:00
parent 7a476e737e
commit 0fa5c530d3
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -86,10 +86,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
pushd $final_path
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb upgrade #-l > $install_log
popd
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config.json"
fi
chmod 750 "$final_path"
@ -113,6 +110,14 @@ ynh_install_app_dependencies $pkg_dependencies
# Install Nodejs
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# UPDATE NODEBB
#=================================================
pushd $final_path
ynh_exec_as $app env $ynh_node_load_PATH $final_path/nodebb upgrade #-l > $install_log
popd
#=================================================
# SETUP SYSTEMD
#=================================================
@ -121,14 +126,6 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
# Create a dedicated systemd config
ynh_add_systemd_config
#=================================================
# UPDATE A CONFIG FILE
#=================================================
ynh_add_config --template="../conf/config.json" --destination="$final_path/config.json"
chmod 400 "$final_path/config.json"
chown $app "$final_path/config.json"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================