Use %i instead of %I

The template argument is (part of) a domain name, not a path, so it
makes no sense to convert - into /. Just use it as specified.
This commit is contained in:
Peter J. Holzer 2023-09-28 12:00:36 +02:00
parent ffca7d93e6
commit 896e123f71
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
[Unit] [Unit]
Description=Gunicorn server for %I Description=Gunicorn server for %i
After=network.target nss-lookup.target network-online.target nss-user-lookup.target After=network.target nss-lookup.target network-online.target nss-user-lookup.target
[Service] [Service]
Type=simple Type=simple
WorkingDirectory=/usr/local/www/%I/app WorkingDirectory=/usr/local/www/%i/app
ExecStart=/usr/local/www/%I/app/venv/bin/gunicorn -c /usr/local/www/%I/config/gunicorn/gunicorn.conf.py ExecStart=/usr/local/www/%i/app/venv/bin/gunicorn -c /usr/local/www/%i/config/gunicorn/gunicorn.conf.py
Restart=on-failure Restart=on-failure
RestartSec=10 RestartSec=10