Commit cb36b2fee425dbb82d9f641e6caafb5828352eff

Authored by Elena.Budnik
1 parent a57a2aa5

proper dirs perms

Showing 2 changed files with 5 additions and 4 deletions   Show diff stats
update_amda/cp2amda
@@ -4,6 +4,10 @@ SCRIPT=$(readlink -f "$0") @@ -4,6 +4,10 @@ SCRIPT=$(readlink -f "$0")
4 export UPDATEDIR=$(dirname "$SCRIPT") 4 export UPDATEDIR=$(dirname "$SCRIPT")
5 . $UPDATEDIR/updateEnv.sh 5 . $UPDATEDIR/updateEnv.sh
6 6
  7 +if [ ! -d "$LocalData" ]; then
  8 + mkdir -m 775 $LocalData
  9 +fi
  10 +
7 # copy all info files 11 # copy all info files
8 if [ ! -d "$DataSetInfo" ]; then 12 if [ ! -d "$DataSetInfo" ]; then
9 mkdir $DataSetInfo 13 mkdir $DataSetInfo
@@ -69,9 +73,6 @@ if [ -d "$NEWMETA/ParamInfo" ]; then @@ -69,9 +73,6 @@ if [ -d "$NEWMETA/ParamInfo" ]; then
69 fi 73 fi
70 74
71 # copy LocalParams.xml created by makeTree.php to AMDA installation 75 # copy LocalParams.xml created by makeTree.php to AMDA installation
72 -if [ ! -d "$LocalData" ]; then  
73 - mkdir $LocalData  
74 -fi  
75 if [ -d "$LocalData" ] && [ -f "$UPDATEDIR/LocalParams.xml" ]; then 76 if [ -d "$LocalData" ] && [ -f "$UPDATEDIR/LocalParams.xml" ]; then
76 mv $UPDATEDIR/LocalParams.xml $LocalData 77 mv $UPDATEDIR/LocalParams.xml $LocalData
77 fi 78 fi
update_amda/makeRemote
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 php $AMDA_IHM/php/RemoteDataCenter/makeArgs.php 34 php $AMDA_IHM/php/RemoteDataCenter/makeArgs.php
35 35
36 if [ ! -f "$RemoteData/Bases.xml" ]; then 36 if [ ! -f "$RemoteData/Bases.xml" ]; then
37 - mkdir -p $RemoteData 37 + mkdir -m 775 -p $RemoteData
38 cp $AMDA_IHM/php/RemoteDataCenter/Bases.xml $RemoteData 38 cp $AMDA_IHM/php/RemoteDataCenter/Bases.xml $RemoteData
39 fi 39 fi
40 40