File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34if [ -d /app/www-tmp ]; then
45 echo "New container detected. Setting up app folder and fixing permissions."
123124
124125# check for the mysql endpoint
125126echo "Waiting for DB to be available"
126- END=$((SECONDS+ 30))
127+ END=$((SECONDS + 30))
127128while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do
128129 if [[ $(/usr/bin/nc -w1 "${DB_HOST}" "${DB_PORT}" | tr -d '\0') ]]; then
129130 if [[ -n "${RUN}" ]]; then
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
3+
24exec memcached -u abc
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
2+ # shellcheck shell=bash
23
34DEFAULT_CONF="/config/nginx/site-confs/default.conf"
45OLD_ROOT="root /var/www/html/public;"
56NEW_ROOT="root /app/www/public;"
67
7- if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
8+ if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}"; then
89 echo "updating root in ${DEFAULT_CONF}"
910 sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
1011fi
You can’t perform that action at this time.
0 commit comments