Fix ExecStart command in dns-updater.service to properly handle environment variables

This commit is contained in:
2025-12-28 21:30:49 +01:00
parent 827ed9f83b
commit 0989f51a55

View File

@@ -8,7 +8,7 @@ Group=root
WorkingDirectory=/opt/dns-updater
Environment="MIAB_HOST=box.koszewscy.waw.pl"
Environment="STORAGE_ROOT=/miab-data"
ExecStart=/usr/bin/gunicorn --workers 4 --bind 0.0.0.0:8443 --certfile=$STORAGE_ROOT/ssl/ssl_certificate.pem --keyfile=$STORAGE_ROOT/ssl/ssl_private_key.pem app:app
ExecStart=/bin/sh -c '/usr/bin/gunicorn --workers 4 --bind 0.0.0.0:8443 --certfile="$STORAGE_ROOT/ssl/ssl_certificate.pem" --keyfile="$STORAGE_ROOT/ssl/ssl_private_key.pem" app:app'
Restart=always
[Install]