From 8329639e37dc7fc4e43fce7818be9716444cf0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 9 Apr 2023 12:22:38 +0200 Subject: [PATCH] cleaning --- scripts/install | 3 +-- scripts/restore | 1 - scripts/upgrade | 3 +-- sources/extra_files/app/.gitignore | 2 -- sources/patches/.gitignore | 2 -- 5 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 sources/extra_files/app/.gitignore delete mode 100644 sources/patches/.gitignore diff --git a/scripts/install b/scripts/install index ad841cc..5e56704 100755 --- a/scripts/install +++ b/scripts/install @@ -15,11 +15,10 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Setting up source files..." --weight=3 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$install_dir" --source_id=$YNH_ARCH +ynh_setup_source --dest_dir="$install_dir" touch $install_dir/database.db -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" chmod -R +x "$install_dir/filebrowser" diff --git a/scripts/restore b/scripts/restore index 2b2065d..6c61498 100755 --- a/scripts/restore +++ b/scripts/restore @@ -17,7 +17,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" chmod -R +x "$install_dir/filebrowser" diff --git a/scripts/upgrade b/scripts/upgrade index 5fc455f..589d3b9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,10 +33,9 @@ then ynh_script_progression --message="Upgrading source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --source_id=$YNH_ARCH --keep="settings.json" + ynh_setup_source --dest_dir="$install_dir" --keep="settings.json" fi -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" chmod -R +x "$install_dir/filebrowser" diff --git a/sources/extra_files/app/.gitignore b/sources/extra_files/app/.gitignore deleted file mode 100644 index 783a4ae..0000000 --- a/sources/extra_files/app/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*~ -*.sw[op] diff --git a/sources/patches/.gitignore b/sources/patches/.gitignore deleted file mode 100644 index 783a4ae..0000000 --- a/sources/patches/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*~ -*.sw[op]