From fa111b7741923a31286205b54276d2960160c075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Parisel?= Date: Fri, 19 Jul 2024 10:38:10 +0200 Subject: [PATCH 1/3] Update manifest.toml --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 0089510..9049a3c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -124,7 +124,7 @@ ram.runtime = "50M" armhf.sha256 = "60376b01b334a0cee3a59016f44dde8b336de2b6aa44f1e6e403d307990c47a0" in_subdir = false - rename = "restic" + rename = "restic.bz2" [resources.system_user] From ec5d16665310f012106c7959f9894a617c142af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Parisel?= Date: Fri, 19 Jul 2024 10:42:45 +0200 Subject: [PATCH 2/3] Uncompress bz2 file --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index 253a381..4af153f 100755 --- a/scripts/install +++ b/scripts/install @@ -20,6 +20,7 @@ ynh_app_setting_set --app=$app --key=passphrase --value="$passphrase" ynh_script_progression --message="Installing Restic..." --weight=7 ynh_setup_source --source_id=main --dest_dir="$install_dir" +bunzip2 -d -f /var/www/restic/restic.bz2 chmod +x "$install_dir/restic" _gen_and_save_public_key From 1e333f1c6cf85f375255ea516cb901fd7338cd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Parisel?= Date: Fri, 19 Jul 2024 10:44:34 +0200 Subject: [PATCH 3/3] Uncompressing file also for upgrade path --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 582678a..98aa5e6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,6 +56,7 @@ fi ynh_script_progression --message="Installing Restic..." --weight=7 ynh_setup_source --source_id=main --dest_dir="$install_dir" +bunzip2 -d -f /var/www/restic/restic.bz2 chmod +x "$install_dir/restic" # This function will only create it if required