Skip to content

Commit d4e447c

Browse files
committed
fix cygwin chmod 000
1 parent 9d0504e commit d4e447c

4 files changed

Lines changed: 27 additions & 2 deletions

File tree

‎bin/.dbwebb.version‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION="1.0.8"
1+
VERSION="1.0.9"

‎bin/README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ History
2727
-------------------
2828

2929

30+
v1.0.9 (2014-09-08)
31+
32+
* `dbwebb-validate` changes chmod to make all dirs and files readable since cygwin may set 000 as rights (for some yet unknown reason).
33+
34+
3035
v1.0.8 (2014-09-05)
3136
v1.0.7 (2014-09-05)
3237
v1.0.6 (2014-09-05)

‎bin/dbwebb-config-sample‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COURSE="DEFAULT_COURSE"
99
#
1010
# Do not change below unless you are really sure on the effects
1111
#
12-
VERSION_CONFIG="1.0.8"
12+
VERSION_CONFIG="1.0.9"
1313

1414
MSG_OK="\033[0;30;42mOK\033[0m"
1515
MSG_WARNING="\033[43mWARNING.\033[0m"

‎bin/dbwebb-validate‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,25 @@ checkTools()
330330

331331

332332

333+
#
334+
# Set proper rights for files and directories
335+
#
336+
setChmod()
337+
{
338+
DIR="$TARGET"
339+
340+
$ECHO "\nUpdating chmod on file and dir."
341+
342+
for filename in $(find "$DIR" -type d); do
343+
chmod 755 "$filename"
344+
done
345+
346+
chmod -R u+rw "$DIR"
347+
chmod -R go+r "$DIR"
348+
}
349+
350+
351+
333352
#
334353
# Perform validation tests
335354
#
@@ -607,6 +626,7 @@ fi
607626

608627
# Execute command
609628
checkTools
629+
setChmod
610630
testMe "$CMD"
611631
validate "$DIR"
612632

0 commit comments

Comments
 (0)