From 7144d8783f787a5e6be85db75bee69b30aff69da Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Tue, 3 Jan 2017 09:49:51 +0100 Subject: [PATCH] Create directory structure on download server just before images upload. To be ready for future boards --- build-all.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-all.sh b/build-all.sh index acfabda92f..5296329e07 100644 --- a/build-all.sh +++ b/build-all.sh @@ -55,6 +55,9 @@ if [[ -n $GPG_PASS ]]; then echo $GPG_PASS | gpg --passphrase-fd 0 --armor --detach-sign --batch --yes armbian.txt fi +# create remote directory structure +ssh ${SEND_TO_SERVER} "mkdir -p /var/www/dl.armbian.com/${BOARD}/{archive,nightly};"; + # pack and move file to server under new process nice -n 19 bash -c "\ 7za a -t7z -bd -m0=lzma2 -mx=3 -mfb=64 -md=32m -ms=on $filename ${version}.img armbian.txt *.asc sha256sum.sha >/dev/null 2>&1 ; \