From b1a3890c54a53a439f48692237336b08aec741e7 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Thu, 25 Jul 2013 16:07:19 -0300 Subject: Fix cmd string to replace placeholders correctly. --- src/leap/services/eip/vpnlaunchers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/leap/services') diff --git a/src/leap/services/eip/vpnlaunchers.py b/src/leap/services/eip/vpnlaunchers.py index 63c01796..81d9b43b 100644 --- a/src/leap/services/eip/vpnlaunchers.py +++ b/src/leap/services/eip/vpnlaunchers.py @@ -268,7 +268,7 @@ class LinuxVPNLauncher(VPNLauncher): """ to = kls.SYSTEM_CONFIG cmd = "#!/bin/sh\nset -e\nmkdir -p %s\n" - cmd += "cp %s/%s %s\ncp \"%s\" \"%s\"" % ( + cmd = (cmd + "cp %s/%s %s\ncp \"%s\" \"%s\"") % ( to, frompath, kls.UP_DOWN_FILE, to, pol_file, kls.POLKIT_PATH) -- cgit v1.2.3