From 07ba6beac5d946e666c673cbb6728b010ef85e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 11 Dec 2023 22:22:55 +0100 Subject: [PATCH] fix install --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 9bffb14..ddf6130 100755 --- a/scripts/install +++ b/scripts/install @@ -15,7 +15,11 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Setting up source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src -_ynh_setup_source_with_fallback +if _check_if_source_available main; then + ynh_setup_source --dest_dir="$install_dir" -s main +else + ynh_setup_source --dest_dir="$install_dir" -s main_attic +fi chmod 750 "$install_dir" chmod -R o-rwx "$install_dir"