Skip to content

Commit 34b2d85

Browse files
committed
service: Add default Environment option
The Fedora service file now contains this directive to avoid systemd complaining about unused variable in case the EnvironmentFile is empty or does not exists. Defining empty variable should not hurt other distros. Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent 37cd58d commit 34b2d85

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

templates/sshd.service.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Documentation=man:sshd(8) man:sshd_config(5)
1212

1313
[Service]
1414
Type=notify
15+
Environment={{ __sshd_environment_variable }}=
1516
{% if __sshd_environment_file is string %}
1617
EnvironmentFile={{ __sshd_environment_file_mandatory | ternary('', '-')}}{{ __sshd_environment_file }}
1718
{% elif __sshd_environment_file is iterable %}

0 commit comments

Comments
 (0)