Selaa lähdekoodia

Add Sentry DSN option to service files

Maarten van den Berg 6 vuotta sitten
vanhempi
commit
410fa4321d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      bin/install-service-files.py

+ 2 - 0
bin/install-service-files.py

@@ -15,6 +15,7 @@ ExecStart={uwsgi_path} --http :5000 --master --threads 2 --module piket_server:a
15 15
 KillSignal=SIGINT
16 16
 Type=notify
17 17
 NotifyAccess=all
18
+Environment=SENTRY_DSN={os.environ.get("SENTRY_DSN")}
18 19
 
19 20
 [Install]
20 21
 WantedBy=default.target
@@ -27,6 +28,7 @@ After=piket-server.service
27 28
 
28 29
 [Service]
29 30
 ExecStart={piket_client_path}
31
+Environment=SENTRY_DSN={os.environ.get("SENTRY_DSN")}
30 32
 
31 33
 [Install]
32 34
 WantedBy=graphical.target