File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
work/entrypoint/docker-entrypoint.d Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN set -eux \
1616 && useradd nginx -G www-data \
1717 && mkdir -pv /var/cache/nginx /var/log/nginx \
1818 && chown -R nginx:www-data /var/cache/nginx /var/log/nginx \
19+ && chmod +x /opt/utils/*.sh \
1920 && source /opt/utils/script-setup.sh && setup_lua_base && setup_lua_rocks \
2021 && source /opt/utils/script-setup-openresty.sh && setup_openresty \
2122 && source /opt/utils/script-setup-acme.sh && setup_acme \
Original file line number Diff line number Diff line change 33
44set -eu
55
6- PROFILE_LOCALIZE=${PROFILE_LOCALIZE:- " default" } ;
7- echo " PROFILE_LOCALIZE=${PROFILE_LOCALIZE} " ;
8-
96# Check if the environment variable PROFILE_LOCALIZE is set and not empty
10- if [ -n " $PROFILE_LOCALIZE " ]; then
11- /bin/sh /opt/utils/script-localize.sh ;
12- else
7+ if [ -z " ${PROFILE_LOCALIZE+x} " ]; then
138 echo " No action taken as PROFILE_LOCALIZE is not set or is empty." ;
9+ else
10+ /bin/sh /opt/utils/script-localize.sh ;
1411fi
You can’t perform that action at this time.
0 commit comments