Commit 69754a74902d9ddbd3f2ccb500a41041b0bf6408

Authored by Elena.Budnik
1 parent 848376da

access permissions 775

src/REMOTEDATA/RemoteDataCenterClass.php
... ... @@ -75,12 +75,12 @@ abstract class RemoteDataCenterClass
75 75 public function initProxy()
76 76 {
77 77 if (!is_dir($this->location))
78   - mkdir($this->location, 0755, true);
  78 + mkdir($this->location, 0775, true);
79 79  
80 80 $this->DDserverDir = RemoteData."/DDServer/".$this->baseID;
81 81  
82 82 if (!is_dir($this->DDserverDir))
83   - mkdir($this->DDserverDir, 0755, true);
  83 + mkdir($this->DDserverDir, 0775, true);
84 84  
85 85 $this->init();
86 86  
... ...
src/REMOTEDATA/makeProxy.php
... ... @@ -24,7 +24,7 @@
24 24  
25 25 $LOGDIR = $DDBASE."/../LOG";
26 26 if (!is_dir($LOGDIR))
27   - mkdir($LOGDIR, 0755, true);
  27 + mkdir($LOGDIR, 0775, true);
28 28  
29 29 define("log",$LOGDIR."/ProxyCreate.log");
30 30 define("err",$LOGDIR."/ProxyCreate.err");
... ... @@ -34,6 +34,11 @@
34 34  
35 35 define('RemoteData', $DDBASE."/../INFO");
36 36  
  37 + // check permissions
  38 + $perms = fileperms(RemoteData);
  39 + if !($perms & 0x0010)
  40 + exit('chmod -R g+wrx INFO dir !!! no write perms for group (apache)'.PHP_EOL);
  41 +
37 42 if (!file_exists(RemoteData."/Bases.xml"))
38 43 exit('No Bases.xml'.PHP_EOL);
39 44  
... ...