summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorzhifeng jiang <jiang.zhifeng@zte.com.cn>2016-10-26 05:25:44 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-26 05:25:44 +0000
commitee12d3e19d914d5d7c4a750ab8ddb93b74d242dc (patch)
tree25bb1f6f01b15ae4758335275bc152b9185d38af /scripts
parentc9dc8ffa175f8aac4ced5ac43c189c60d403d4f9 (diff)
parent62d00c20476d8e25974c2f78ec9c2bd05d8f2412 (diff)
Merge "Remove Qtip private key files in repos"
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cleanup_creds.sh14
-rwxr-xr-xscripts/file_permission.sh3
2 files changed, 14 insertions, 3 deletions
diff --git a/scripts/cleanup_creds.sh b/scripts/cleanup_creds.sh
new file mode 100644
index 00000000..9bf44305
--- /dev/null
+++ b/scripts/cleanup_creds.sh
@@ -0,0 +1,14 @@
+#! /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
+
+
+
diff --git a/scripts/file_permission.sh b/scripts/file_permission.sh
deleted file mode 100755
index a8af957e..00000000
--- a/scripts/file_permission.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/bash
-chmod 0600 config/QtipKey
-chmod 0600 config/QtipKey.pub