aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-07-04 10:20:21 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-07-04 10:20:21 +0200
commitf091daffe7f6fcfb21c8ca2e83b4ff916b70b7df (patch)
tree13efdf471b1109dd67e61ba99394a62c6a38f004
parent4216fce24d216de34cf2355b3128094504026372 (diff)
downloadturris-myrepo-f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df.tar.gz
turris-myrepo-f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df.tar.bz2
turris-myrepo-f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df.zip
Handle script signature
-rwxr-xr-xbuild_repo.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/build_repo.sh b/build_repo.sh
index e463bfa..8bbe5fd 100755
--- a/build_repo.sh
+++ b/build_repo.sh
@@ -65,12 +65,15 @@ fi
deploy() {
echo -e "\e[1;34mSign and deploy $1\e[0m"
- SEC=../myrepo-cert/files/key.sec
+ SEC=myrepo-cert/files/key.sec
pushd .$1-sdk
- staging_dir/host/bin/usign -S -s $SEC -m bin/$2/packages/base/Packages
+ staging_dir/host/bin/usign -S -s ../$SEC -m bin/$2/packages/base/Packages
scp bin/$2/packages/base/* cynerd.cz:/usr/local/www/data/myrepo/$1/
popd
- scp $1.lua freebsd@cynerd.cz:/usr/local/www/data/myrepo/$1.lua
+ .$1-sdk/staging_dir/host/bin/usign -S -s $SEC -m $1.lua
+ scp $1.lua cynerd.cz:/usr/local/www/data/myrepo/$1.lua
+ scp $1.lua.sig cynerd.cz:/usr/local/www/data/myrepo/$1.lua.sig
+ rm $1.lua.sig
}
if [ "$BOARD" = "omnia" ] || [ "$BOARD" = "all" ]; then