From 5978cf69928bd9af528debb375a389540fa94bda Mon Sep 17 00:00:00 2001 From: Nicolas North Date: Sun, 22 Apr 2018 10:40:18 +0000 Subject: [PATCH] Fix permissions on standalone restore --- functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions b/functions index 7df70da..a1eace7 100644 --- a/functions +++ b/functions @@ -265,6 +265,8 @@ restore_loop() { rsync -aAXx --exclude wp-config.php --exclude mysqldump.sql "$site"/ "$www_site_dir" + chown -R www-data:www-data "$www_site_dir" + if [ "${enable_le:-null}" = "y" ] then echo "${b} Provisioning LetsEncrypt TLS certificate for restored site...${x}"