aboutsummaryrefslogtreecommitdiff
path: root/build_repo.sh
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-10-25 12:40:08 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-10-25 12:40:08 +0200
commitca31f34dba9a9ec72769c9513f449c975a065fa3 (patch)
tree7b7bf72dcfe54b1e41e390c84318289c7329aede /build_repo.sh
parent05378c44b6a49be9ef4432b7e9dd3ccc7aa5dca2 (diff)
downloadturris-myrepo-ca31f34dba9a9ec72769c9513f449c975a065fa3.tar.gz
turris-myrepo-ca31f34dba9a9ec72769c9513f449c975a065fa3.tar.bz2
turris-myrepo-ca31f34dba9a9ec72769c9513f449c975a065fa3.zip
More fixes for new server and updater version
Diffstat (limited to 'build_repo.sh')
-rwxr-xr-xbuild_repo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build_repo.sh b/build_repo.sh
index def77cf..9ee814e 100755
--- a/build_repo.sh
+++ b/build_repo.sh
@@ -64,13 +64,13 @@ if [ "$BOARD" = "turris" ] || [ "$BOARD" = "all" ]; then
fi
deploy() {
- local TARGET="cynerd.cz:/var/www/myrepo/$1"
+ local TARGET="cynerd.cz:/var/www/myrepo"
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/* "$TARGET/"
+ scp bin/$2/packages/base/* "$TARGET/$1/"
popd
.$1-sdk/staging_dir/host/bin/usign -S -s $SEC -m $1.lua
scp $1.lua "$TARGET/$1.lua"