init: systemd: Use systemd style config overrides

* RIP hacky /etc/default/foo style environement sourcing hack
This commit is contained in:
Kyle Manna 2015-07-11 08:50:24 -07:00
parent 313d1e756c
commit 5a1e642177

View File

@ -16,8 +16,9 @@ Environment="DATA_VOL=ovpn-data-%i"
Environment="IMG=kylemanna/openvpn:dev"
Environment="PORT=1194:1194/udp"
# Override defaults in env file
EnvironmentFile=-/etc/default/docker-openvpn-%i
# To override environment variables, use local configuration directory:
# /etc/systemd/system/docker-openvpn@foo.d/local.conf
# http://www.freedesktop.org/software/systemd/man/systemd.unit.html
# Clean-up bad state if still hanging around
ExecStartPre=-/usr/bin/docker rm -f $NAME