summaryrefslogtreecommitdiff
path: root/scripts/check-qemu-install
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-31 11:50:10 +0000
committerChristian Poessinger <christian@poessinger.com>2021-01-31 11:50:10 +0000
commit4188b0f49a88b9881f2a95bc5863270163dcac80 (patch)
tree4566b449d28805d3d8b4bca47ff932a4a1257d83 /scripts/check-qemu-install
parent08d6937f9cbca47b0506086002401baebd021e16 (diff)
downloadvyos-build-4188b0f49a88b9881f2a95bc5863270163dcac80.tar.gz
vyos-build-4188b0f49a88b9881f2a95bc5863270163dcac80.zip
Testsuite: use buildin commands over 'openvpn --genkey' raw command
Diffstat (limited to 'scripts/check-qemu-install')
-rwxr-xr-xscripts/check-qemu-install12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index b28c000f..ead8ed10 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -371,10 +371,14 @@ try:
c.expect(r'vyos@vyos:~\$', timeout=600)
c.sendline(f'openssl dhparam -out {dh_pem} 2048')
c.expect(r'vyos@vyos:~\$', timeout=600)
- c.sendline(f'openvpn --genkey --secret {s2s_key}')
- c.expect(r'vyos@vyos:~\$', timeout=600)
- c.sendline(f'openvpn --genkey --secret {auth_key}')
- c.expect(r'vyos@vyos:~\$', timeout=600)
+ c.sendline(f'generate openvpn key {s2s_key}')
+ c.expect(r'vyos@vyos:~\$')
+ c.sendline(f'generate openvpn key {auth_key}')
+ c.expect(r'vyos@vyos:~\$')
+
+ script_file = '/config/scripts/vyos-foo-update.script'
+ c.sendline(f'echo "#!/bin/sh" > {script_file}; chmod 775 {script_file}')
+ c.expect(r'vyos@vyos:~\$')
for file in [ca_cert, ssl_cert, ssl_key, dh_pem, s2s_key, auth_key]:
c.sendline(f'sudo chown openvpn:openvpn {file}')