From 740cbf36beff04167473cc293a72b0442b74e701 Mon Sep 17 00:00:00 2001 From: zhihui wu Date: Tue, 16 May 2017 13:56:28 +0800 Subject: delete unuse code in directory /qtip Change-Id: I6732c7cf572d5b744c3a176ce266b9739e9233fd Signed-off-by: zhihui wu --- qtip/scripts/cleanup_creds.sh | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 qtip/scripts/cleanup_creds.sh (limited to 'qtip/scripts/cleanup_creds.sh') diff --git a/qtip/scripts/cleanup_creds.sh b/qtip/scripts/cleanup_creds.sh deleted file mode 100755 index ad66ba95..00000000 --- a/qtip/scripts/cleanup_creds.sh +++ /dev/null @@ -1,20 +0,0 @@ -#! /bin/bash -############################################################################## -# Copyright (c) 2017 ZTE corp. and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License, Version 2.0 -# which accompanies this distribution, and is available at -# http://www.apache.org/licenses/LICENSE-2.0 -############################################################################## - -DEST_IP=$1 -PRIVATE_KEY=$2 -PUBLIC_KEY=$3 -sshoptions="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" - -case "$INSTALLER_TYPE" in - fuel) - ssh $sshoptions -i $PRIVATE_KEY root@$DEST_IP "sed -i '/$PUBLIC_KEY/d' /root/.ssh/authorized_keys" - ;; -esac -- cgit 1.2.3-korg