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

Update upgrade

This commit is contained in:
Éric Gaspar 2023-12-31 12:24:56 +01:00
parent c0dcccaaf6
commit 806a4087e6

View file

@ -169,6 +169,13 @@ if ynh_compare_current_package_version --comparison lt --version 4.2.0~ynh1; the
popd
fi
if ynh_compare_current_package_version --comparison lt --version 5.0.0~ynh1; then
ynh_script_progression --message="Running Peertube 5.0.0 migration script..."
pushd "$install_dir"
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH NODE_CONFIG_DIR="$install_dir/config" NODE_ENV=production $ynh_node dist/scripts/migrations/peertube-5.0.js
popd
fi
#=================================================
# START SYSTEMD SERVICE
#=================================================