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 @@ -346,3 +346,17 @@ function do_list_functions() {
346
346
function do_shell() {
347
347
bash " $@ "
348
348
}
349
+
350
+ function has_acl() {
351
+ return 0
352
+ }
353
+
354
+ function permission_mode() {
355
+ if [ " $IS_CHOWN_FORBIDDEN " == " true" ]; then
356
+ echo " chmod"
357
+ elif has_acl; then
358
+ echo " facl"
359
+ else
360
+ echo " stickybit"
361
+ fi
362
+ }
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ export APP_USER_LOCAL
34
34
APP_USER_LOCAL_RANDOM=" $( convert_to_boolean_string " ${APP_USER_LOCAL_RANDOM:- false} " ) "
35
35
export APP_USER_LOCAL_RANDOM
36
36
37
+ export PERMISSION_MODE=${PERMISSION_MODE:= " $( permission_mode) " }
38
+
37
39
export BUILD_USER_SSH_PRIVATE_KEY=${BUILD_USER_SSH_PRIVATE_KEY:- }
38
40
export BUILD_USER_SSH_PUBLIC_KEY=${BUILD_USER_SSH_PUBLIC_KEY:- }
39
41
export BUILD_USER_SSH_KNOWN_HOSTS=${BUILD_USER_SSH_KNOWN_HOSTS:- }
You can’t perform that action at this time.
0 commit comments