From 7dcf64bf710eb3ae1587f9da4c034455244fdcca Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Fri, 27 May 2022 08:52:55 +0530 Subject: [PATCH] Update with global compose-exec helper function 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 cc050eb..85ab16d 100644 --- a/src/PHP.php +++ b/src/PHP.php @@ -470,7 +470,7 @@ private function configure_site_files() { // Assign www-data user ownership. chdir( $this->site_data['site_fs_path'] ); - EE::exec( sprintf( 'docker-compose exec --user=root php chown -R www-data: %s', $this->site_data['site_container_fs_path'] ) ); + \EE_DOCKER::docker_compose_exec( sprintf( 'chown -R www-data: %s', $this->site_data['site_container_fs_path'], 'php', 'bash', 'root' ) ); \EE::success( 'Configuration files copied.' ); } catch ( \Exception $e ) {