aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-10-23 12:30:18 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-10-23 12:30:18 +0200
commitb874ff7bc64ed266ada493fb4cf97133a12bf4af (patch)
tree0d40b014901db1cb44d386ab99beb2b2df6cb349
parent783b41167e1c6494140b4c2199e7ec5f38dce34b (diff)
downloadturris-myrepo-b874ff7bc64ed266ada493fb4cf97133a12bf4af.tar.gz
turris-myrepo-b874ff7bc64ed266ada493fb4cf97133a12bf4af.tar.bz2
turris-myrepo-b874ff7bc64ed266ada493fb4cf97133a12bf4af.zip
Fix build_repo for new server
-rwxr-xr-xbuild_repo.sh8
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
}