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] 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 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