deploy assets
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
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
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Refresh pkgstash db files
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 02:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Sparse caching arch linux mirror
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/pkgstash
|
||||
User=pkgstash
|
||||
Group=pkgstash
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,6 @@
|
||||
cache_root = "/home/ewpt3ch/dev/pacman-cache-server/tmprepo"
|
||||
mirror_url = "https://us.mirrors.cicku.me/archlinux/"
|
||||
port = "8090"
|
||||
|
||||
[auth]
|
||||
token = "FakeToken"
|
||||
Reference in New Issue
Block a user