File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
9193grant () {
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 "
You can’t perform that action at this time.
0 commit comments