From b874ff7bc64ed266ada493fb4cf97133a12bf4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 23 Oct 2017 12:30:18 +0200 Subject: Fix build_repo for new server --- build_repo.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_repo.sh b/build_repo.sh index 89127c9..def77cf 100755 --- a/build_repo.sh +++ b/build_repo.sh @@ -64,15 +64,17 @@ if [ "$BOARD" = "turris" ] || [ "$BOARD" = "all" ]; then fi deploy() { + local TARGET="cynerd.cz:/var/www/myrepo/$1" + ssh cynerd.cz -- mkdir -p "/var/www/myrepo/$1" # Make sure that directory exists echo -e "\e[1;34mSign and deploy $1\e[0m" SEC=myrepo-cert/files/key.sec pushd .$1-sdk 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/ + scp bin/$2/packages/base/* "$TARGET/" popd .$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 + scp $1.lua "$TARGET/$1.lua" + scp $1.lua.sig "$TARGET/$1.lua.sig" rm $1.lua.sig } -- cgit v1.2.3