Projet

Général

Profil

0001-debian-use-shell-script-to-load-etc-authentic2-authe.patch

Benjamin Dauvergne, 09 juillet 2020 09:58

Télécharger (1,7 ko)

Voir les différences:

Subject: [PATCH] debian: use shell script to load
 /etc/authentic2/authentic.conf in systemd service file (#44960)

 debian/authentic2.install   | 1 +
 debian/authentic2.service   | 2 +-
 debian/launch-authentic2.sh | 5 +++++
 3 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100755 debian/launch-authentic2.sh
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
. /etc/authentic2/authentic.conf
4

  
5
/usr/bin/gunicorn3 "$@"
0
-