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}"