]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
use ssh agendt
authorHolger Levsen <holger@layer-acht.org>
Tue, 5 Mar 2013 14:06:42 +0000 (15:06 +0100)
committerHolger Levsen <holger@layer-acht.org>
Tue, 5 Mar 2013 14:06:42 +0000 (15:06 +0100)
liveboot_gw_autotest.sh
pxe_install.sh

index 0a55b239b3ea00210e4a967f4a0b89b9218c576f..69eb02e7b85b153c7a86392be6b76473a3993388 100755 (executable)
@@ -23,6 +23,7 @@ TMPFILE=$(mktemp)
 ssh-agent > $TMPFILE
 source $TMPFILE
 ssh-add ~/.ssh/id_ritest
+rm $TMPFILE
 
 #
 # temp. until fabian has fixed liveboot
index 554f3518d75e11de3f651d0e2161118acf5732df..b4e67d3a9b153100629b7da9db625ba329593af2 100755 (executable)
@@ -55,11 +55,20 @@ echo
 
 figlet $TARGET_HOST
 echo "successfully installed"
-ssh -i ~/.ssh/id_ritest $TARGET_HOST uname -a
+#
+# prepare ssh
+#
+TMPFILE=$(mktemp)
+ssh-agent > $TMPFILE
+source $TMPFILE
+ssh-add ~/.ssh/id_ritest
+rm $TMPFILE
+
+ssh -t $TARGET_HOST uname -a
 echo
-ssh -i ~/.ssh/id_ritest $TARGET_HOST "dpkg -l | egrep '(profit|bird|vcb|ofed|qemu|kvm)' | sort -k 50"
+ssh -t $TARGET_HOST "dpkg -l | egrep '(profit|bird|vcb|ofed|qemu|kvm)' | sort -k 50"
 echo
-ssh -i ~/.ssh/id_ritest $TARGET_HOST dpkg -l | grep develop || true
+ssh -t $TARGET_HOST dpkg -l | grep develop || true
 echo
-ssh -i ~/.ssh/id_ritest $TARGET_HOST "cat /etc/apt/sources.list.d/* /etc/apt/sources.list|grep -v ^#|sort -u"
+ssh -t $TARGET_HOST "cat /etc/apt/sources.list.d/* /etc/apt/sources.list|grep -v ^#|sort -u"