Commit 385243a2 authored by j38560's avatar j38560

Added remote SQL function.

parent 1e4a634b
...@@ -42,4 +42,9 @@ checkTaskStatus(){ ...@@ -42,4 +42,9 @@ checkTaskStatus(){
runRemoteSSH(){ runRemoteSSH(){
ssh -o StrictHostKeyChecking=no -i "$1" [email protected]$TARGET_IP "$2" ssh -o StrictHostKeyChecking=no -i "$1" [email protected]$TARGET_IP "$2"
}
runRemoteSQL(){
echo "Running SQL $1"
mysql -u deployment -h $TARGET_IP < "$1"
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment