From: Holger Levsen Date: Tue, 5 Mar 2013 14:06:42 +0000 (+0100) Subject: use ssh agendt X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=37cea4fb4c30fd85fc21eb4386fec608ce853400;p=profitbricks%2Fjenkins-build-scripts.git use ssh agendt --- diff --git a/liveboot_gw_autotest.sh b/liveboot_gw_autotest.sh index 0a55b23..69eb02e 100755 --- a/liveboot_gw_autotest.sh +++ b/liveboot_gw_autotest.sh @@ -23,6 +23,7 @@ TMPFILE=$(mktemp) ssh-agent > $TMPFILE source $TMPFILE ssh-add ~/.ssh/id_ritest +rm $TMPFILE # # temp. until fabian has fixed liveboot diff --git a/pxe_install.sh b/pxe_install.sh index 554f351..b4e67d3 100755 --- a/pxe_install.sh +++ b/pxe_install.sh @@ -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"