File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,24 @@ DB_PATH=${DB_ENGINE:-postgresql}://${DB_USER:-lntuser}:${DB_PWD:?}@${DB_HOST:?}
44DB_BASE=${DB_BASE:- lnt}
55
66if [ ! -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
1717fi
1818
1919cd /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 " $@ "
You can’t perform that action at this time.
0 commit comments