Move the environment variables to an EnvironmentFile

This commit is contained in:
Greg Karékinian
2019-04-23 11:40:33 +02:00
parent 451d182ca9
commit 79023a65f2
2 changed files with 19 additions and 9 deletions

View File

@@ -6,9 +6,7 @@ ExecStart=<%= @entry %>
WorkingDirectory=<%= @app_dir %>
User=<%= @user %>
Group=<%= @group %>
<% unless @environment.empty? -%>
Environment=<% @environment.each do |key, value| -%>'<%= key %>=<%= value %>' <% end %>
<% end -%>
EnvironmentFile=<%= @environment_file %>
Restart=always
[Install]