BaseBandRewrite/push_file.sh
TudbuT 9d0d39df03
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 8m49s
/ Build BaseBand Loader (push) Successful in 5m58s
/ Build BaseBand Server (push) Successful in 3m3s
fix sftp host key checking
2024-06-09 13:20:47 +02:00

9 lines
No EOL
252 B
Bash

#!/bin/bash
# DO NOT RUN THIS MANUALLY. PUSH TO RELEASE INSTEAD. ( <- unless there is an emergency.)
echo "$SSH_PRIVATEKEY" > ssh_key
chmod 700 ssh_key
scp -o StrictHostKeyChecking=no -i ssh_key -P "$BB_PORT" "$1" "root@$BB_HOST:$BB_PATH"
rm ssh_key