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"