Skip to content

Commit e900808

Browse files
committed
Fixes for bash 5
1 parent 7dfe95d commit e900808

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/start-container

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@ setup-users() {
8585
ensure-user developer "${DEVELOPER_UID-}" "${DEVELOPER_GID-}"
8686
NGINX_GROUPS=($(groups nginx))
8787
addgroup developer nginx
88+
ensure-dir "$COMPOSER_HOME"
89+
ensure-dir ~developer
8890
chown -Rf developer:developer "$COMPOSER_HOME" ~developer
8991
}
9092

9193
grant() {
9294
for f in $4; do
93-
ch$1 -Rf $2 "$f" && chmod -Rf $3 $f
95+
ch$1 -Rf $2 "$f" && chmod -Rf $3 $f || true
9496
done
9597
}
9698

@@ -115,6 +117,7 @@ run-user-scripts() {
115117
fi
116118
# run scripts in list-grouped, glob-sorted order
117119
for i in $(glob-list "$RUN_SCRIPTS"); do
120+
[[ -f "$i" ]] || continue
118121
reject-nginx-writable "$i"
119122
[[ -x "$i" ]] || { chmod ug+x "$i" && sync; } || return
120123
"$i"

0 commit comments

Comments
 (0)