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