0001-debian-use-shell-script-to-load-etc-authentic2-authe.patch
debian/authentic2-manage | ||
---|---|---|
24 | 24 |
if [ -f /etc/authentic2/db.conf ]; then |
25 | 25 |
. /etc/authentic2/db.conf |
26 | 26 |
fi |
27 | ||
27 | 28 |
if [ -f /etc/authentic2/authentic.conf ]; then |
28 | 29 |
. /etc/authentic2/authentic.conf |
29 | 30 |
fi |
debian/authentic2.install | ||
---|---|---|
2 | 2 |
debian/authentic2-manage /usr/bin |
3 | 3 |
debian/conf/nginx-example.conf /usr/share/authentic2 |
4 | 4 |
debian/debian_config.py /usr/lib/authentic2 |
5 |
debian/launch-authentic2.sh /usr/lib/authentic2 |
debian/authentic2.service | ||
---|---|---|
10 | 10 |
Group=authentic2 |
11 | 11 |
ExecStartPre=/usr/bin/authentic2-manage migrate --noinput |
12 | 12 |
ExecStartPre=/usr/bin/authentic2-manage collectstatic --noinput |
13 |
ExecStart=/usr/bin/gunicorn3 \
|
|
13 |
ExecStart=/usr/lib/authentic2/launch-authentic2.sh \
|
|
14 | 14 |
--bind unix:/run/%p/%p.sock \ |
15 | 15 |
--worker-class=sync \ |
16 | 16 |
--workers 5 \ |
debian/launch-authentic2.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 | ||
3 |
if [ -f /etc/default/authentic2 ]; then |
|
4 |
. /etc/default/authentic2 |
|
5 |
fi |
|
6 | ||
7 |
if [ -f /etc/authentic2/db.conf ]; then |
|
8 |
. /etc/authentic2/db.conf |
|
9 |
fi |
|
10 | ||
11 |
if [ -f /etc/authentic2/authentic.conf ]; then |
|
12 |
. /etc/authentic2/authentic.conf |
|
13 |
fi |
|
14 | ||
15 |
/usr/bin/gunicorn3 "$@" |
|
0 |
- |