diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-07-04 10:20:21 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-07-04 10:20:21 +0200 |
commit | f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df (patch) | |
tree | 13efdf471b1109dd67e61ba99394a62c6a38f004 | |
parent | 4216fce24d216de34cf2355b3128094504026372 (diff) | |
download | turris-myrepo-f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df.tar.gz turris-myrepo-f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df.tar.bz2 turris-myrepo-f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df.zip |
Handle script signature
-rwxr-xr-x | build_repo.sh | 9 |
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 |