From 301c5d89d0dfe09bce8d66265c970de4dd89ce83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 3 Apr 2023 11:40:38 +0200 Subject: [PATCH] fix --- conf/app.src | 5 ----- manifest.toml | 9 ++++++++- scripts/change_url | 11 ----------- scripts/install | 1 - 4 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 conf/app.src diff --git a/conf/app.src b/conf/app.src deleted file mode 100644 index 03fcd47..0000000 --- a/conf/app.src +++ /dev/null @@ -1,5 +0,0 @@ -SOURCE_URL=https://github.com/hedgedoc/hedgedoc/releases/download/1.9.7/hedgedoc-1.9.7.tar.gz -SOURCE_SUM=c9bd99c65cf45fa1d7808855b46abbfa13b24400254d8da5e81dae2965494bb3 -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=tar.gz -SOURCE_IN_SUBDIR=true diff --git a/manifest.toml b/manifest.toml index 448d092..c8d75f4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "HedgeDoc" description.en = "Collaborative editor to work on notes written in Markdown" description.fr = "Éditeur collaboratif pour travailler sur des notes en Markdown" -version = "1.9.7~ynh2" +version = "1.9.7~ynh3" maintainers = ["eric_G"] @@ -42,6 +42,13 @@ ram.runtime = "50M" [resources] + [resources.sources] + + [resources.sources.main] + url = "https://github.com/hedgedoc/hedgedoc/releases/download/1.9.7/hedgedoc-1.9.7.tar.gz" + sha256 = "c9bd99c65cf45fa1d7808855b46abbfa13b24400254d8da5e81dae2965494bb3" + autoupdate.strategy = "latest_github_tag" + [resources.ports] [resources.system_user] diff --git a/scripts/change_url b/scripts/change_url index 052b690..85e7e6c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -9,17 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# LOAD SETTINGS -#================================================= -ynh_script_progression --message="Loading installation settings..." --weight=1 - -allow_anonymous=$(ynh_app_setting_get --app=$app --key=allow_anonymous) -allow_anonymous_edits=$(ynh_app_setting_get --app=$app --key=allow_anonymous_edits) -allow_email_registration=$(ynh_app_setting_get --app=$app --key=allow_email_registration) -allow_free_url=$(ynh_app_setting_get --app=$app --key=allow_free_url) -require_free_url_authentication=$(ynh_app_setting_get --app=$app --key=require_free_url_authentication) - #================================================= # STANDARD MODIFICATIONS #================================================= diff --git a/scripts/install b/scripts/install index a48e613..795873a 100644 --- a/scripts/install +++ b/scripts/install @@ -70,7 +70,6 @@ ynh_script_progression --message="Building HedgeDoc... (this will take some time pushd "$install_dir" ynh_use_nodejs - #ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn cache clean ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install --frozen-lockfile ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build popd