From 7d82f846e8d9092347b3aa783179c23ec76ad568 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Wed, 24 Aug 2016 19:41:07 +0200 Subject: [PATCH] Fixes to restore script --- scripts/install | 2 +- scripts/restore | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 95993db..e9c0071 100644 --- a/scripts/install +++ b/scripts/install @@ -31,7 +31,7 @@ sudo chown -R root: $final_path # except for data and tmp subdir, where www-data must have write permissions sudo mkdir -p $final_path/{data,tmp} -sudo chown www-data:root $final_path/{data,tmp} +sudo chown -R www-data:root $final_path/{data,tmp} sudo chmod 700 $final_path/{data,tmp} # Modify Nginx configuration file and copy it to Nginx conf directory diff --git a/scripts/restore b/scripts/restore index 281984c..422fb06 100644 --- a/scripts/restore +++ b/scripts/restore @@ -51,8 +51,9 @@ fi sudo cp -a "./sources" $final_path # Set permissions -sudo chown -R www-data:root $final_path/{conf,data,data/attic,data/cache,data/index,data/locks,data/media*,data/meta,data/pages,data/tmp,lib/plugins} -sudo chmod -R 700 $final_path/{conf,data,data/attic,data/cache,data/index,data/locks,data/media*,data/meta,data/pages,data/tmp,lib/plugins} +sudo chown -R root:root $final_path +sudo chown -R www-data:root $final_path/{data,tmp} +sudo chmod -R 700 $final_path/{data,tmp} # Restore conf files sudo cp -a "./conf/nginx.conf" $conf