File tree Expand file tree Collapse file tree
ubuntu/16.04/usr/local/share Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -290,3 +290,17 @@ function test_remote_ports() {
290290 timeout 1 bash -c " cat < /dev/null > /dev/tcp/${SERVICE_PARAMS[0]} /${SERVICE_PARAMS[1]} " 2> /dev/null || return 1
291291 done
292292}
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
2929APP_USER_LOCAL_RANDOM=" $( convert_to_boolean_string " ${APP_USER_LOCAL_RANDOM:- false} " ) "
3030export APP_USER_LOCAL_RANDOM
3131
32+ export PERMISSION_MODE=${PERMISSION_MODE:= " $( permission_mode) " }
33+
3234export BUILD_USER_SSH_PRIVATE_KEY=${BUILD_USER_SSH_PRIVATE_KEY:- }
3335export BUILD_USER_SSH_PUBLIC_KEY=${BUILD_USER_SSH_PUBLIC_KEY:- }
3436export BUILD_USER_SSH_KNOWN_HOSTS=${BUILD_USER_SSH_KNOWN_HOSTS:- }
You can’t perform that action at this time.
0 commit comments