summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/helpers/__init__.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-05-16 22:54:21 +0200
committerRuben Pollan <meskio@sindominio.net>2017-05-22 12:56:20 +0200
commitca6f399c045d5caa21835f762cde877bf2b80ad6 (patch)
treef7ce41b5056943d9cf1ad02b7f5dd24f23795ce8 /src/leap/bitmask/vpn/helpers/__init__.py
parent75debc78584681071685e17ae4c596662eeae3af (diff)
[pkg] install and use static openvpn from bundle
Diffstat (limited to 'src/leap/bitmask/vpn/helpers/__init__.py')
-rw-r--r--src/leap/bitmask/vpn/helpers/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/bitmask/vpn/helpers/__init__.py b/src/leap/bitmask/vpn/helpers/__init__.py
index 69a9a5fb..3b7e1176 100644
--- a/src/leap/bitmask/vpn/helpers/__init__.py
+++ b/src/leap/bitmask/vpn/helpers/__init__.py
@@ -10,14 +10,21 @@ if IS_LINUX:
helper_to = '/usr/local/sbin/bitmask-root'
polkit_to = '/usr/share/polkit-1/actions/se.bitmask.bundle.policy'
+ openvpn_to = '/usr/local/sbin/leap-openvpn'
def install():
helper_from = _config.get_bitmask_helper_path()
polkit_from = _config.get_bitmask_polkit_policy_path()
+ openvpn_from = _config.get_bitmask_openvpn_path()
+
copyfile(helper_from, helper_to)
chmod(helper_to, 0744)
+
copyfile(polkit_from, polkit_to)
+ copyfile(openvpn_from, openvpn_to)
+ chmod(openvpn_to, 0700)
+
def uninstall():
remove(helper_to)
remove(polkit_to)