tools: Add UPLOAD_KEY

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2021-01-30 19:01:29 -05:00
parent 5515e89048
commit 3d95cec60b
14 changed files with 28 additions and 14 deletions

View file

@ -2,6 +2,7 @@
# self-explanatory.
UPLOAD_USER=x86
UPLOAD_KEY=/root/.ssh/id_rsa
host=$(hostname)
source /etc/catalyst/release/build.env
@ -54,7 +55,7 @@ update_symlinks() {
upload() {
echo " ** Uploading $@"
rsync \
-e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' \
-e 'ssh -i ${UPLOAD_KEY} -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' \
-a \
--omit-dir-times \
--delay-updates \