tools: Add UPLOAD_USER variable

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2021-01-30 18:43:40 -05:00
parent 16b0dfbc2e
commit 5515e89048
14 changed files with 32 additions and 18 deletions

View file

@ -1,6 +1,8 @@
# This is the config file for the catalyst-auto script. It should be pretty
# self-explanatory.
UPLOAD_USER=riscv
host=$(hostname)
SPECS_DIR=${REPO_DIR}/releases/specs-qemu/riscv
@ -42,7 +44,7 @@ update_symlinks() {
upload() {
if [[ ${nonetwork} == 0 ]]; then
echo Uploading "$@"
rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" riscv@releng-incoming.gentoo.org:
rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org:
fi
}