debian: adapt authentic2 package scripts for python3

This commit is contained in:
Benjamin Dauvergne 2020-07-02 13:44:52 +02:00
parent 7ef148e0c5
commit 441276f573
2 changed files with 2 additions and 2 deletions

View File

@ -28,4 +28,4 @@ if [ -f /etc/authentic2/authentic.conf ]; then
. /etc/authentic2/authentic.conf
fi
python ${MANAGE} "$@"
python3 ${MANAGE} "$@"

View File

@ -10,7 +10,7 @@ User=authentic2
Group=authentic2
ExecStartPre=/usr/bin/authentic2-manage migrate --noinput
ExecStartPre=/usr/bin/authentic2-manage collectstatic --noinput
ExecStart=/usr/bin/python2 -m gunicorn.app.wsgiapp \
ExecStart=/usr/bin/gunicorn3 \
--bind unix:/run/%p/%p.sock \
--worker-class=sync \
--workers 5 \