Commit cb32ce867a7de7e6e64d0d6af30ca02d683df9dd
1 parent
d5e126d3
Exists in
master
and in
109 other branches
mkdir PATAMS in case of THEMIS
Showing
2 changed files
with
6 additions
and
3 deletions
Show diff stats
php/RemoteDataCenter/THEMIS.php
... | ... | @@ -90,6 +90,9 @@ class THEMIS extends RemoteDataCenterClientClass |
90 | 90 | |
91 | 91 | $xmlNameRemote = RemoteData."/PARAMS/".$paramId.".xml"; |
92 | 92 | |
93 | + if (!is_dir(RemoteData."/PARAMS")) | |
94 | + mkdir(RemoteData."/PARAMS", 0775, true); | |
95 | + | |
93 | 96 | return $xml->save($xmlNameRemote); |
94 | 97 | } |
95 | 98 | |
... | ... | @@ -100,7 +103,7 @@ class THEMIS extends RemoteDataCenterClientClass |
100 | 103 | foreach ($params as $param) |
101 | 104 | { |
102 | 105 | if (!$this->makeInternalParamXml($param)) |
103 | - echo 'Error while making '.$param->getAttribute('xml:id').PHP_EOL;; | |
106 | + echo 'Error while making '.$param->getAttribute('xml:id').PHP_EOL; | |
104 | 107 | } |
105 | 108 | } |
106 | 109 | ... | ... |
update_amda/makeRemote
... | ... | @@ -42,11 +42,11 @@ |
42 | 42 | # "DDBASE side" ( CDAWEB-like ) data centers |
43 | 43 | # |
44 | 44 | |
45 | - php $AMDA_IHM/php/RemoteDataCenter/getRemoteDDBaseProxies.php | |
46 | - | |
47 | 45 | sudo chmod -R g+wrx $RemoteData |
48 | 46 | sudo chmod -R g+wrx $PARAMS_LOCALDB_DIR |
49 | 47 | |
48 | + php $AMDA_IHM/php/RemoteDataCenter/getRemoteDDBaseProxies.php | |
49 | + | |
50 | 50 | # copy "DDBASE" Remote Params descriptions |
51 | 51 | if [ -d "$RemoteData/PARAMS" ]; then |
52 | 52 | cp $AMDA_IHM/generic_data/RemoteData/PARAMS/* $PARAMS_LOCALDB_DIR/ | ... | ... |