Skip to content

Commit

Permalink
Merge pull request #331 from ibmcb/double_start
Browse files Browse the repository at this point in the history
stop the VPN from starting twice
  • Loading branch information
maugustosilva authored Sep 18, 2019
2 parents e846816 + f345318 commit 1671be6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/clouds/shared_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,10 +1182,9 @@ def populate_cloudconfig(self, obj_attr_list) :
cloudconfig += " - rm -f /etc/openvpn/*.conf /etc/openvpn/*.ovpn\n"
cloudconfig += " - mv /tmp/cbvpn.conf " + conf_destination + "\n"
cloudconfig += " - mkdir -p /var/log/openvpn\n"
cloudconfig += " - openvpn --daemon --config " + conf_destination + "\n"

# cloudconfig += " - systemctl start openvpn@" + obj_attr_list["cloud_name"] + "_client-cb-openvpn-cloud.service\n"
# cloudconfig += " - service openvpn start\n"
#cloudconfig += " - openvpn --daemon --config " + conf_destination + "\n"
cloudconfig += " - systemctl start openvpn@" + obj_attr_list["cloud_name"] + "_client-cb-openvpn-cloud.service\n"
cloudconfig += " - service openvpn start\n"

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

0 comments on commit 1671be6

Please sign in to comment.