SHA256
1
0
forked from pool/MirrorCache
MirrorCache/update-cache.sh
Andrii Nikitin f9006fd2e1 Accepting request 919463 from home:eroca:MirrorCache2
- Update to version 1.008
- Improve packaging, the conf.env is now in /etc/mirrorcache/
  * Add script to generate and update cache.tar.xz

OBS-URL: https://build.opensuse.org/request/show/919463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=18
2021-09-16 08:52:52 +00:00

21 lines
321 B
Bash

#! /bin/sh
set -e
export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'
osc up
rm -f _service\:*
rm -f *.tar *.cpio
osc service lr
# special call for tar buildtime service
osc service lr tar
SD=$PWD
cd MirrorCache
tools/generate-packed-assets
tar cvjf ../cache.tar.xz assets/cache assets/assetpack.db
cd "$SD"
osc up