diff --git a/php/RemoteDataCenter/THEMIS.php b/php/RemoteDataCenter/THEMIS.php index 27e2548..7a0c44f 100644 --- a/php/RemoteDataCenter/THEMIS.php +++ b/php/RemoteDataCenter/THEMIS.php @@ -90,6 +90,9 @@ class THEMIS extends RemoteDataCenterClientClass $xmlNameRemote = RemoteData."/PARAMS/".$paramId.".xml"; + if (!is_dir(RemoteData."/PARAMS")) + mkdir(RemoteData."/PARAMS", 0775, true); + return $xml->save($xmlNameRemote); } @@ -100,7 +103,7 @@ class THEMIS extends RemoteDataCenterClientClass foreach ($params as $param) { if (!$this->makeInternalParamXml($param)) - echo 'Error while making '.$param->getAttribute('xml:id').PHP_EOL;; + echo 'Error while making '.$param->getAttribute('xml:id').PHP_EOL; } } diff --git a/update_amda/makeRemote b/update_amda/makeRemote index 96f28bd..7aee7a6 100755 --- a/update_amda/makeRemote +++ b/update_amda/makeRemote @@ -42,11 +42,11 @@ # "DDBASE side" ( CDAWEB-like ) data centers # - php $AMDA_IHM/php/RemoteDataCenter/getRemoteDDBaseProxies.php - sudo chmod -R g+wrx $RemoteData sudo chmod -R g+wrx $PARAMS_LOCALDB_DIR + php $AMDA_IHM/php/RemoteDataCenter/getRemoteDDBaseProxies.php + # copy "DDBASE" Remote Params descriptions if [ -d "$RemoteData/PARAMS" ]; then cp $AMDA_IHM/generic_data/RemoteData/PARAMS/* $PARAMS_LOCALDB_DIR/ -- libgit2 0.21.2