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

Merge pull request #293 from fflorent/fix-upgrade-script-4.0

Fix upgrade script 4.0
This commit is contained in:
Éric Gaspar 2021-12-29 22:39:14 +01:00 committed by GitHub
commit b618b71d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -290,11 +290,13 @@ ynh_systemd_action --service_name=nginx --action=reload
#=================================================
# PEERTUBE 4.0.0 UPGRADE MIGRATION SCRIPT
#=================================================
ynh_script_progression --message="Running Peertube 4.0.0 migration script..."
pushd "$final_path"
if ynh_compare_current_package_version --comparison lt --version 4.0.0~ynh1; then
ynh_script_progression --message="Running Peertube 4.0.0 migration script..."
pushd "$final_path"
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production node dist/scripts/migrations/peertube-4.0.js
popd
popd
fi
#=================================================
# END OF SCRIPT