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 @@ -328,3 +328,17 @@ function do_list_functions() {
328
328
function do_shell() {
329
329
bash " $@ "
330
330
}
331
+
332
+ function has_acl() {
333
+ return 0
334
+ }
335
+
336
+ function permission_mode() {
337
+ if [ " $IS_CHOWN_FORBIDDEN " == " true" ]; then
338
+ echo " chmod"
339
+ elif has_acl; then
340
+ echo " facl"
341
+ else
342
+ echo " stickybit"
343
+ fi
344
+ }
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