From 37fb9cb64b2aab64dca1949eea03f5c03b62f28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 5 Jun 2023 12:49:18 +0200 Subject: [PATCH] cleaning --- manifest.toml | 2 +- scripts/install | 1 - scripts/restore | 8 ++++++++ scripts/upgrade | 8 ++++++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index ad314b5..665dbd4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -12,7 +12,7 @@ maintainers = ["eric_G"] [upstream] license = "MIT" admindoc = "https://actualbudget.github.io/docs/" -code = "https://github.com/actualbudget/actual" +code = "https://github.com/actualbudget/actual-server" [integration] yunohost = ">= 11.1.19" diff --git a/scripts/install b/scripts/install index d84b20e..c57f757 100755 --- a/scripts/install +++ b/scripts/install @@ -61,7 +61,6 @@ ynh_script_progression --message="Installing $app..." --weight=10 pushd $install_dir ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install - #ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build popd #================================================= diff --git a/scripts/restore b/scripts/restore index ce4fe87..a2fccef 100755 --- a/scripts/restore +++ b/scripts/restore @@ -28,6 +28,14 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory chown -R $app:www-data "$data_dir" +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=7 + +# Install Nodejs +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + #================================================= # RESTORE SYSTEM CONFIGURATIONS #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9856889..db78065 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,6 +34,14 @@ fi chown -R $app:www-data "$install_dir" +#================================================= +# UPGRADE DEPENDENCIES +#================================================= +ynh_script_progression --message="Upgrading dependencies..." --weight=5 + +# Install Nodejs +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================