From f091daffe7f6fcfb21c8ca2e83b4ff916b70b7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 4 Jul 2017 10:20:21 +0200 Subject: Handle script signature --- build_repo.sh | 9 ++++++--- 1 file 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 -- cgit v1.2.3