diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-03-31 15:19:26 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2015-03-31 15:19:26 +0000 |
commit | a0c78c82a5cb3a69f66a4ed631b555e3df54d6e5 (patch) | |
tree | 9ec5790f7ccb961bc242e8c4ae7490f668e66a49 /kpov_judge/tasks/openvpn_simple_smb | |
parent | 57b460d77fc034ff00555bf674bae5de2a350c1c (diff) |
Fixed generation of disk images
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@294 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/openvpn_simple_smb')
-rw-r--r-- | kpov_judge/tasks/openvpn_simple_smb/task.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kpov_judge/tasks/openvpn_simple_smb/task.py b/kpov_judge/tasks/openvpn_simple_smb/task.py index e530bf0..edaeef7 100644 --- a/kpov_judge/tasks/openvpn_simple_smb/task.py +++ b/kpov_judge/tasks/openvpn_simple_smb/task.py @@ -305,8 +305,9 @@ iface tap0 inet static templates['SimpleArbiterVPN'].write( "/srv/smb/" + fname + '.txt', kpov_random_helpers.fortune(r, 4096)) - templates['VPNClient1'].write("/home/student/" + keyfile, s) - templates['VPNClient1'].chown("student", "student", "/home/student/" + keyfile) + templates['VPNClient1'].write("/home/student/" + keyfile, s) + # uid, gid (student = ) + templates['VPNClient1'].chown(1000, 1000, "/home/student/" + keyfile) |