From 6c187d8b162b8f7f00cf95190205863fa018f9a2 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 23:51:43 +0200 Subject: [PATCH] fix --- scripts/install | 1 + scripts/restore | 2 +- scripts/upgrade | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 0b61716..f60bfd6 100755 --- a/scripts/install +++ b/scripts/install @@ -19,6 +19,7 @@ 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" +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" chmod +x "$install_dir/start_xwiki.sh" diff --git a/scripts/restore b/scripts/restore index 696d6b0..2b62a3f 100755 --- a/scripts/restore +++ b/scripts/restore @@ -26,7 +26,7 @@ ynh_script_progression --message="Restoring the data directory..." --weight=1 ynh_restore_file --origin_path="$data_dir" --not_mandatory -# (Same as for install dir) +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$data_dir" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 00f908e..d25e8fc 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,7 +32,9 @@ then ynh_setup_source --dest_dir="$install_dir" --keep ="xwiki_env" fi +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +chmod +x "$install_dir/start_xwiki.sh" #================================================= # REAPPLY SYSTEM CONFIGURATIONS