From b1c93647a2ceac724d30b8bafb417a3d9d1c118c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 5 Aug 2019 03:11:07 +0200 Subject: [PATCH] fix restore --- scripts/restore | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index a5f6892..a355f06 100644 --- a/scripts/restore +++ b/scripts/restore @@ -67,8 +67,10 @@ ynh_restore # Restore permissions on app files chown -R root: $final_path chmod 2775 "$final_path/sites/default/files" -chown -R $app: "${final_path}_private" -chmod 775 "${final_path}_private" + +mkdir -p "/home/yunohost.app/$app/data" +chown -R $app: "/home/yunohost.app/$app/data" +chmod 775 "/home/yunohost.app/$app/data" #================================================= # SPECIFIC RESTORATION