f9006fd2e1
- 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
21 lines
321 B
Bash
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
|