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] [Service]
Type=oneshot Type=oneshot
User=pkgstash 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
+1
View File
@@ -3,6 +3,7 @@ Description=Refresh pkgstash db files
[Timer] [Timer]
OnCalendar=*-*-* 02:00:00 OnCalendar=*-*-* 02:00:00
RandomizedDelaySec=30m
Persistent=true Persistent=true
[Install] [Install]