Commit cb36b2fee425dbb82d9f641e6caafb5828352eff
1 parent
a57a2aa5
Exists in
master
and in
109 other branches
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 | 4 | export UPDATEDIR=$(dirname "$SCRIPT") |
5 | 5 | . $UPDATEDIR/updateEnv.sh |
6 | 6 | |
7 | +if [ ! -d "$LocalData" ]; then | |
8 | + mkdir -m 775 $LocalData | |
9 | +fi | |
10 | + | |
7 | 11 | # copy all info files |
8 | 12 | if [ ! -d "$DataSetInfo" ]; then |
9 | 13 | mkdir $DataSetInfo |
... | ... | @@ -69,9 +73,6 @@ if [ -d "$NEWMETA/ParamInfo" ]; then |
69 | 73 | fi |
70 | 74 | |
71 | 75 | # copy LocalParams.xml created by makeTree.php to AMDA installation |
72 | -if [ ! -d "$LocalData" ]; then | |
73 | - mkdir $LocalData | |
74 | -fi | |
75 | 76 | if [ -d "$LocalData" ] && [ -f "$UPDATEDIR/LocalParams.xml" ]; then |
76 | 77 | mv $UPDATEDIR/LocalParams.xml $LocalData |
77 | 78 | fi | ... | ... |
update_amda/makeRemote