From 1512d0c4ab5746f3681b9300507befbeb2a65ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 4 Feb 2024 20:34:16 +0100 Subject: [PATCH] try to fix missing dir --- scripts/install | 3 ++- scripts/upgrade | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index fa78c58..6114a9d 100755 --- a/scripts/install +++ b/scripts/install @@ -23,7 +23,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/source" -mkdir -p "$install_dir/accounts/newsmirror" +mkdir -p "$install_dir/source/accounts/newsmirror" +ln -s "$install_dir/source/accounts/newsmirror" "$install_dir/newsmirror" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index e6eabc7..be01138 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,7 +24,7 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$install_dir/source" --full_replace=1 +ynh_setup_source --dest_dir="$install_dir/source" --full_replace=1 --keep="accounts/newsmirror" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir"