From 917937f038de2cea8d1aa96100b1a5fbe2d59694 Mon Sep 17 00:00:00 2001 From: Laurent Jouanneau Date: Thu, 14 Mar 2024 18:06:09 +0100 Subject: [PATCH] Fix configuration script: use the getFilesToCopy method --- pgrouting/install/configure.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pgrouting/install/configure.php b/pgrouting/install/configure.php index 6b5688c..4e6413c 100644 --- a/pgrouting/install/configure.php +++ b/pgrouting/install/configure.php @@ -21,6 +21,14 @@ public function getDefaultParameters() ); } + public function getFilesToCopy() + { + return array( + 'www/css' => 'www:pgrouting/css', + 'www/js/dist' => 'www:pgrouting/js', + ); + } + public function configure(ConfigurationHelpers $helpers) { // srid = projection of the target pgrouting tables @@ -34,9 +42,6 @@ public function configure(ConfigurationHelpers $helpers) 'PostgreSQL group of user to grant access on the schema pgrouting ?', $this->parameters['postgresql_user_group'] ); - - $helpers->copyDirectoryContent('../www/css', jApp::wwwPath('pgrouting/css')); - $helpers->copyDirectoryContent('../www/js/dist', jApp::wwwPath('pgrouting/js')); } public function localConfigure(LocalConfigurationHelpers $helpers)