SHA256
1
0
forked from pool/openQA
openQA/update-cache.sh

23 lines
332 B
Bash
Raw Normal View History

#! /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.xz
osc service lr
SD=$PWD
tmp=$(mktemp -d)
cd $tmp
tar xf $SD/openQA-*.tar.xz
cd openQA-*
script/generate-packed-assets
tar cvjf cache.tar.xz assets/cache assets/assetpack.db
mv cache.tar.xz $SD/cache.txz
cd $SD
osc up