X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=testing%2Fscripts%2Frestore-defaults;h=b1dae1ea26f018613e8c1bc2a3d49fc712ea1381;hp=129e46f56bbdda244178fdd903e4311a9159a595;hb=7cbe4a33e9d8604999cd2ce8f45e633af703c014;hpb=997358a6c475c8886cce388ab325184a1ff733c9 diff --git a/testing/scripts/restore-defaults b/testing/scripts/restore-defaults index 129e46f..b1dae1e 100755 --- a/testing/scripts/restore-defaults +++ b/testing/scripts/restore-defaults @@ -47,7 +47,7 @@ if [ -d $TESTSDIR/${testname}/hosts ] then for host in `ls $TESTSDIR/${testname}/hosts` do - eval HOSTLOGIN="root@`echo $HOSTNAMEIPS | sed -n -e "s/^.*${host}://gp" | awk -F : '{ print $1 }' | awk '{ print $1 }'`" + eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`" scp -rp $HOSTCONFIGDIR/${host}/etc $HOSTLOGIN:/ > /dev/null 2>&1 done fi