add $ynh_npm run download-dist upgrade step

This commit is contained in:
Hadrien 2022-05-04 09:06:19 +02:00 committed by GitHub
parent f92bd1f40b
commit 48e57fc5dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,7 @@ pushd "$final_path"
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
popd
#=================================================
# SETUP SYSTEMD
#=================================================
@ -141,6 +142,15 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload
#=================================================
# SPECIFIC UPGRADE
#=================================================
ynh_script_progression --message="Upgrading download-dist Uptime Kuma dependencies..." --weight=1
pushd "$final_path"
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm run download-dist
popd
#=================================================
# END OF SCRIPT
#=================================================