Update upgrade

This commit is contained in:
Éric Gaspar 2023-03-21 12:42:24 +01:00
parent 7e31ca98ab
commit c7fee31588

View file

@ -33,6 +33,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
# Download, check integrity, uncompress and patch the source from dist.src # Download, check integrity, uncompress and patch the source from dist.src
ynh_setup_source --dest_dir="$install_dir/dist" --source_id="dist" ynh_setup_source --dest_dir="$install_dir/dist" --source_id="dist"
fi fi
@ -46,7 +47,6 @@ chown -R $app:www-data "$install_dir"
ynh_script_progression --message="Upgrading nodejs..." --weight=2 ynh_script_progression --message="Upgrading nodejs..." --weight=2
ynh_install_nodejs --nodejs_version=$nodejs_version ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_use_nodejs
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
@ -65,6 +65,7 @@ yunohost service add $app --description="Monitoring tool" --log="/var/log/$app/$
ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weight=7 ynh_script_progression --message="Upgrading Uptime Kuma dependencies..." --weight=7
pushd "$install_dir" pushd "$install_dir"
ynh_use_nodejs
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install
popd popd