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 1
1
#!/usr/bin/with-contenv bash
2
+ # shellcheck shell=bash
2
3
3
4
if [ -d /app/www-tmp ]; then
4
5
echo "New container detected. Setting up app folder and fixing permissions."
123
124
124
125
# check for the mysql endpoint
125
126
echo "Waiting for DB to be available"
126
- END=$((SECONDS+ 30))
127
+ END=$((SECONDS + 30))
127
128
while [[ ${SECONDS} -lt ${END} ]] && [[ -n "${DB_HOST+x}" ]]; do
128
129
if [[ $(/usr/bin/nc -w1 "${DB_HOST}" "${DB_PORT}" | tr -d '\0') ]]; then
129
130
if [[ -n "${RUN}" ]]; then
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
+ # shellcheck shell=bash
3
+
2
4
exec memcached -u abc
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
+ # shellcheck shell=bash
2
3
3
4
DEFAULT_CONF="/config/nginx/site-confs/default.conf"
4
5
OLD_ROOT="root /var/www/html/public;"
5
6
NEW_ROOT="root /app/www/public;"
6
7
7
- if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
8
+ if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}"; then
8
9
echo "updating root in ${DEFAULT_CONF}"
9
10
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
10
11
fi
You can’t perform that action at this time.
0 commit comments