randomize timer and get token from environment
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user