Skip to content

Commit 0367895

Browse files
committed
[NFC] Reindent docker-entrypoint.sh with spaces
1 parent 0eb6c92 commit 0367895

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

docker/docker-entrypoint.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ DB_PATH=${DB_ENGINE:-postgresql}://${DB_USER:-lntuser}:${DB_PWD:?}@${DB_HOST:?}
44
DB_BASE=${DB_BASE:-lnt}
55

66
if [ ! -r /etc/lnt/lnt.cfg ]; then
7-
DB_BASE_PATH="${DB_PATH}/${DB_BASE}" wait_db
8-
lnt create /var/lib/lnt/instance \
9-
--config /etc/lnt/lnt.cfg \
10-
--wsgi lnt_wsgi.py \
11-
--tmp-dir /tmp/lnt \
12-
--db-dir "${DB_PATH}" \
13-
--default-db "${DB_BASE}"
14-
if [ -n "${LNT_AUTH_TOKEN:-}" ]; then
15-
sed -i "s/# \(api_auth_token =\).*/\1 '${LNT_AUTH_TOKEN}'/" /etc/lnt/lnt.cfg
16-
fi
7+
DB_BASE_PATH="${DB_PATH}/${DB_BASE}" wait_db
8+
lnt create /var/lib/lnt/instance \
9+
--config /etc/lnt/lnt.cfg \
10+
--wsgi lnt_wsgi.py \
11+
--tmp-dir /tmp/lnt \
12+
--db-dir "${DB_PATH}" \
13+
--default-db "${DB_BASE}"
14+
if [ -n "${LNT_AUTH_TOKEN:-}" ]; then
15+
sed -i "s/# \(api_auth_token =\).*/\1 '${LNT_AUTH_TOKEN}'/" /etc/lnt/lnt.cfg
16+
fi
1717
fi
1818

1919
cd /var/lib/lnt/instance
20-
exec gunicorn lnt_wsgi:application \
21-
--bind 0.0.0.0:8000 \
22-
--workers 8 \
23-
--timeout 300 \
24-
--name lnt_server \
25-
--log-file /var/log/lnt/lnt.log \
26-
--access-logfile /var/log/lnt/gunicorn_access.log \
27-
--max-requests 250000 "$@"
20+
exec gunicorn lnt_wsgi:application \
21+
--bind 0.0.0.0:8000 \
22+
--workers 8 \
23+
--timeout 300 \
24+
--name lnt_server \
25+
--log-file /var/log/lnt/lnt.log \
26+
--access-logfile /var/log/lnt/gunicorn_access.log \
27+
--max-requests 250000 "$@"

0 commit comments

Comments
 (0)