diff options
-rwxr-xr-x | build_repo.sh | 8 |
1 files 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 } |