From 6eacfa69d968db17fb5b21d9e4abcd3accb1a4c5 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 9 Oct 2024 23:16:50 +0200 Subject: [PATCH] use base_dir var in goatcounter template file --- templates/goatcounter.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/goatcounter.service.j2 b/templates/goatcounter.service.j2 index e2b0e9e..17b0b38 100644 --- a/templates/goatcounter.service.j2 +++ b/templates/goatcounter.service.j2 @@ -3,7 +3,7 @@ Description=Goatcounter After=network.target [Service] -ExecStart=/mnt/data/goatcounter/goatcounter serve -listen *:8081 -tls http -smtp smtps://goatcounter%%40mg.augendre.info:{{gc_mailgun_api_key}}@smtp.mailgun.org:587 -email-from goatcounter@mg.augendre.info -automigrate -db sqlite+/mnt/data/goatcounter/db/goatcounter.sqlite3 +ExecStart={{base_dir}}/goatcounter serve -listen *:8081 -tls http -smtp smtps://goatcounter%%40mg.augendre.info:{{gc_mailgun_api_key}}@smtp.mailgun.org:587 -email-from goatcounter@mg.augendre.info -automigrate -db sqlite+{{base_dir}}/db/goatcounter.sqlite3 Type=simple Restart=always User=gaugendre