File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
ubuntu/16.04/usr/local/share Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -290,3 +290,17 @@ function test_remote_ports() {
290
290
timeout 1 bash -c " cat < /dev/null > /dev/tcp/${SERVICE_PARAMS[0]} /${SERVICE_PARAMS[1]} " 2> /dev/null || return 1
291
291
done
292
292
}
293
+
294
+ function has_acl() {
295
+ return 0
296
+ }
297
+
298
+ function permission_mode() {
299
+ if [ " $IS_CHOWN_FORBIDDEN " == " true" ]; then
300
+ echo " chmod"
301
+ elif has_acl; then
302
+ echo " facl"
303
+ else
304
+ echo " stickybit"
305
+ fi
306
+ }
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ export APP_USER_LOCAL
29
29
APP_USER_LOCAL_RANDOM=" $( convert_to_boolean_string " ${APP_USER_LOCAL_RANDOM:- false} " ) "
30
30
export APP_USER_LOCAL_RANDOM
31
31
32
+ export PERMISSION_MODE=${PERMISSION_MODE:= " $( permission_mode) " }
33
+
32
34
export BUILD_USER_SSH_PRIVATE_KEY=${BUILD_USER_SSH_PRIVATE_KEY:- }
33
35
export BUILD_USER_SSH_PUBLIC_KEY=${BUILD_USER_SSH_PUBLIC_KEY:- }
34
36
export BUILD_USER_SSH_KNOWN_HOSTS=${BUILD_USER_SSH_KNOWN_HOSTS:- }
You can’t perform that action at this time.
0 commit comments