diff options
author | ss5781@student.uni-lj.si <ss5781@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-02-03 14:14:24 +0000 |
---|---|---|
committer | ss5781@student.uni-lj.si <ss5781@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-02-03 14:14:24 +0000 |
commit | ade0967e79f2077983037be32faeef5e30622941 (patch) | |
tree | 450fe7b927b0ea2d633beb6575cf27dae3f91a75 | |
parent | 9c72d4b26bf6211833bc9e1e154fdeb45a889b7e (diff) |
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
-rw-r--r-- | kpov_judge/tasks/openvpn_simple_smb/task.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |