randomize timer and get token from environment

This commit is contained in:
2026-05-07 11:02:12 -06:00
parent 00c0987529
commit 97e871253f
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -4,4 +4,5 @@ Description=[refresh pkgstash db files]
[Service]
Type=oneshot
User=pkgstash
ExecStart=/usr/bin/curl -s -X POST -H "Authorization: Bearer <token>" http://localhost:8090/api/refresh
EnvironmentFile=/etc/pkgstash/pkgstash.env
ExecStart=/usr/bin/curl -s -X POST -H "Authorization: Bearer ${PKGSTASH_TOKEN}" http://localhost:8090/api/refresh