From ade0967e79f2077983037be32faeef5e30622941 Mon Sep 17 00:00:00 2001 From: "ss5781@student.uni-lj.si" Date: Tue, 3 Feb 2015 14:14:24 +0000 Subject: popravek generiranja kljucev v prepare disk git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@265 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/openvpn_simple_smb/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kpov_judge/tasks/openvpn_simple_smb') diff --git a/kpov_judge/tasks/openvpn_simple_smb/task.py b/kpov_judge/tasks/openvpn_simple_smb/task.py index ce47d3f..251e05d 100644 --- a/kpov_judge/tasks/openvpn_simple_smb/task.py +++ b/kpov_judge/tasks/openvpn_simple_smb/task.py @@ -310,9 +310,9 @@ def prepare_disks(templates, params): s = "\n".join([ "".join([r.choice("0123456789abcdef") for i in xrange(16)]) for i in xrange(16)]) - s = """-----BEGIN OpenVPN Static Key V1----- + s = """-----BEGIN OpenVPN Static key V1----- {} ------END OpenVPN Static Key V1----- +-----END OpenVPN Static key V1----- """.format(s) keyfile = kpov_random_helpers.fname_gen(r, extension=False) + ".key" templates['SimpleArbiterVPN'].write("/etc/openvpn/secret.key", s) -- cgit v1.2.1