|
|
@ -61,7 +61,7 @@ set_mode() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
case "$state_should" in |
|
|
|
case "$state_should" in |
|
|
|
present|exists|pre-exists) |
|
|
|
present|exists) |
|
|
|
# Note: Mode - needs to happen last as a chown/chgrp can alter mode by |
|
|
|
# Note: Mode - needs to happen last as a chown/chgrp can alter mode by |
|
|
|
# clearing S_ISUID and S_ISGID bits (see chown(2)) |
|
|
|
# clearing S_ISUID and S_ISGID bits (see chown(2)) |
|
|
|
for attribute in group owner mode; do |
|
|
|
for attribute in group owner mode; do |
|
|
@ -83,7 +83,11 @@ case "$state_should" in |
|
|
|
# set-attributes is created if file is created or uploaded in gencode-local |
|
|
|
# set-attributes is created if file is created or uploaded in gencode-local |
|
|
|
fire_onchange=1 |
|
|
|
fire_onchange=1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pre-exists) |
|
|
|
|
|
|
|
# pre-exists should never reach gencode-remote… |
|
|
|
|
|
|
|
exit 1 |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
absent) |
|
|
|
absent) |
|
|
|