From 0fb9624f03a79aced8d4e92c8ee35872ead26e11 Mon Sep 17 00:00:00 2001 From: j38560 Date: Tue, 20 Dec 2016 11:17:47 +0000 Subject: [PATCH] fixes for changes.sql --- bin/diff.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/diff.sh b/bin/diff.sh index e0fe4c7..3ace22c 100644 --- a/bin/diff.sh +++ b/bin/diff.sh @@ -6,11 +6,11 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $ROOT/set_env.sh source $ROOT/functions.sh -runRemoteSSH "$ROOT/../keys/deploykey.private" "mysqldbcompare --skip-row-count --skip-data-check --server1=deployment@$SOURCE_IP --server2=deployment@$TARGET_IP performance:performance --changes-for=server2 --difftype=sql > $ROOT/../changes.sql" +runRemoteSSH "$ROOT/../keys/deploykey.private" "mysqldbcompare --skip-row-count --skip-data-check --server1=deployment@$SOURCE_IP --server2=deployment@$TARGET_IP performance:performance --changes-for=server2 --difftype=sql > /tmp/changes.sql" echo "Differences: echo "##########################" -runRemoteSSH "$ROOT/../keys/deploykey.private" "cat $ROOT/../changes.sql" +runRemoteSSH "$ROOT/../keys/deploykey.private" "cat /tmp/changes.sql" echo "##########################" -scp -o StrictHostKeyChecking=no -i $ROOT/../keys/deploykey.private root@$TARGET_IP:/tmp/changes.sql . \ No newline at end of file +scp -o StrictHostKeyChecking=no -i $ROOT/../keys/deploykey.private root@$TARGET_IP:/tmp/changes.sql $ROOT/../changes.sql \ No newline at end of file -- GitLab