aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/scripts
diff options
context:
space:
mode:
authorzhihui wu <zhihui.wu2006+zte@gmail.com>2017-03-15 01:27:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-03-15 01:27:02 +0000
commitfef1092cdb5a28d8d39eff94dbbd0dd187a16971 (patch)
tree73326cb8c372b6eff1a917806fa20a61299175f7 /qtip/scripts
parent23e60e59ea572d5fb5a30f74d5d41bd9fbd8d31a (diff)
parent855ac41c1220daf85717bb48ce2d4d2828109aa5 (diff)
Merge "env cleanup" into stable/danube
Diffstat (limited to 'qtip/scripts')
-rwxr-xr-xqtip/scripts/cleanup_creds.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/qtip/scripts/cleanup_creds.sh b/qtip/scripts/cleanup_creds.sh
new file mode 100755
index 00000000..b4eee924
--- /dev/null
+++ b/qtip/scripts/cleanup_creds.sh
@@ -0,0 +1,11 @@
+#! /bin/bash
+
+DEST_IP=$1
+HOSTNAME=$(hostname)
+sshoptions="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
+
+case "$INSTALLER_TYPE" in
+ fuel)
+ ssh $sshoptions -i ./config/QtipKey root@$DEST_IP "sed -i '/root@$HOSTNAME/d' /root/.ssh/authorized_keys"
+ ;;
+esac