Skip to content

Commit 1671be6

Browse files
Merge pull request #331 from ibmcb/double_start
stop the VPN from starting twice
2 parents e846816 + f345318 commit 1671be6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/clouds/shared_functions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,10 +1182,9 @@ def populate_cloudconfig(self, obj_attr_list) :
11821182
cloudconfig += " - rm -f /etc/openvpn/*.conf /etc/openvpn/*.ovpn\n"
11831183
cloudconfig += " - mv /tmp/cbvpn.conf " + conf_destination + "\n"
11841184
cloudconfig += " - mkdir -p /var/log/openvpn\n"
1185-
cloudconfig += " - openvpn --daemon --config " + conf_destination + "\n"
1186-
1187-
# cloudconfig += " - systemctl start openvpn@" + obj_attr_list["cloud_name"] + "_client-cb-openvpn-cloud.service\n"
1188-
# cloudconfig += " - service openvpn start\n"
1185+
#cloudconfig += " - openvpn --daemon --config " + conf_destination + "\n"
1186+
cloudconfig += " - systemctl start openvpn@" + obj_attr_list["cloud_name"] + "_client-cb-openvpn-cloud.service\n"
1187+
cloudconfig += " - service openvpn start\n"
11891188

11901189
# Check to see if the user requested packages to be installed for this VM role via cloud-init
11911190
if obj_attr_list["cloudinit_packages"].lower() != "false" :

0 commit comments

Comments
 (0)