MirrorCache/update-cache.sh
Andrii Nikitin a6470bd6e8 - Update to version 1.078:
* Respect If-Modified-Since header (#501)
  * Add content-disposition header in torrent responses (#497)
  * Reuse file extention instead of url parameter in redirects (#497)
  * Allow caches to serve files while re-checking (#492)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=109
2024-07-18 08:27:19 +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