BaseBandRewrite/scripts/push_file.sh
TudbuT b72baefd53
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 1m27s
/ Build BaseBand Installer (push) Successful in 1m11s
/ Build BaseBand Loader (push) Successful in 1m37s
/ Build BaseBand Server (push) Successful in 1m31s
move scripts
2024-06-12 09:49:58 +02:00

10 lines
No EOL
380 B
Bash
Executable file

#!/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" &&
(ssh -o StrictHostKeyChecking=no -i ssh_key -p "$BB_PORT" "root@$BB_HOST" "cd $BB_PATH && bash $(basename "$1").sh" || true)
rm ssh_key