From 5b4da49781a2f2d48ca132e845e1ecf3c7ecb586 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 3 Sep 2024 07:58:24 +0200 Subject: [PATCH] (re)apply correct perms for the data_dir on restore otherwise the database is not readable by the app... --- scripts/restore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/restore b/scripts/restore index c778d29..4547709 100644 --- a/scripts/restore +++ b/scripts/restore @@ -27,6 +27,9 @@ ynh_script_progression --message="Restoring the data directory..." --weight=1 ynh_restore_file --origin_path="$data_dir" --not_mandatory +chmod -R o-rwx "$data_dir" +chown -R $app:www-data "$data_dir" + #================================================= # RESTORE SYSTEM CONFIGURATIONS #=================================================