From 4fdcbee962c0425b9bda2f1380705c62b1470404 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Fri, 27 Sep 2024 21:36:56 +0530 Subject: [PATCH] Update chown to parent www dir Signed-off-by: Riddhesh Sanghvi --- src/PHP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PHP.php b/src/PHP.php index 53aba72..c5ced33 100644 --- a/src/PHP.php +++ b/src/PHP.php @@ -476,7 +476,7 @@ private function configure_site_files() { // Assign www-data user ownership. chdir( $this->site_data['site_fs_path'] ); - \EE_DOCKER::docker_compose_exec( sprintf( 'chown -R www-data: %s', $this->site_data['site_container_fs_path'], 'php', 'bash', 'root' ) ); + \EE_DOCKER::docker_compose_exec( 'chown -R www-data: /var/www/', 'php', 'bash', 'root' ); \EE::success( 'Configuration files copied.' ); } catch ( \Exception $e ) {