From 2fa4158114bf45bc02fc83f07b4529066c468f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:34:20 +0200 Subject: [PATCH] fix --- scripts/install | 4 ++-- scripts/upgrade | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index a3fae88..1eab1e0 100644 --- a/scripts/install +++ b/scripts/install @@ -48,8 +48,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" -executable="$(find $install_dir -name "vikunja-*" \! -name "*.sha256")" -mv "$executable" "$install_dir/vikunja" +rm $install_dir/"*.sha256" +mv "$install_dir/vikunja-*" "$install_dir/vikunja" chmod +x "$install_dir/vikunja" chmod -R o-rwx "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index 61c7ba1..ee143d5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,11 +93,10 @@ ynh_systemd_action --service_name=$app --action=stop --log_path=systemd ynh_script_progression --message="Upgrading source files..." --weight=5 ynh_setup_source --dest_dir="$install_dir" -executable="$(find $install_dir -name "vikunja-*" \! -name "*.sha256")" -mv "$executable" "$install_dir/vikunja" +rm $install_dir/"*.sha256" +mv "$install_dir/vikunja-*" "$install_dir/vikunja" chmod +x "$install_dir/vikunja" - chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir"