From 15175b68e8d68a4ffcc6e7c382e0a166b87db638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 20 Jun 2024 22:09:47 +0200 Subject: [PATCH] Fix path to sources, full_replace=1 --- scripts/install | 2 +- scripts/upgrade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index f84b9bb..901659f 100644 --- a/scripts/install +++ b/scripts/install @@ -32,7 +32,7 @@ chown -R "$app:www-data" "$install_dir" #================================================= ynh_script_progression --message="Installing $app..." --weight=40 -pushd "$install_dir" +pushd "$install_dir/sources" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" install ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" BUILD_MODE=dist "$ynh_npm" run build diff --git a/scripts/upgrade b/scripts/upgrade index c493d86..e68dfa7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Upgrading source files..." --weight=5 # 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/sources" --full_replace=1 chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" @@ -23,7 +23,7 @@ chown -R "$app:www-data" "$install_dir" #================================================= ynh_script_progression --message="Installing $app..." --weight=40 -pushd "$install_dir" +pushd "$install_dir/sources" ynh_use_nodejs ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" install ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" BUILD_MODE=dist "$ynh_npm" run build