Skip to content

Commit

Permalink
fix(service): use OS-specific service name in multi-service setups
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Jul 13, 2019
1 parent 7e4c8d6 commit b16756c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# How to name the service (instance)?
{% if salt['grains.has_value']('systemd') %}
{% set service_name = 'openvpn@' ~ name %}
{% set service_name = map.service ~ '@' ~ name %}
{% else %}
{% set service_name = 'openvpn_' ~ name %}
{% set service_name = map.service ~ '_' ~ name %}
{% endif %}
# Create an init script?
Expand Down

0 comments on commit b16756c

Please sign in to comment.