As agreed with anaconda team, they will provide a environment file under /etc/sysconfig (#1722928)

See anaconda pull request for discussion:

https://github.com/rhinstaller/anaconda/pull/2042
This commit is contained in:
Jakub Jelen 2019-07-12 23:20:56 +02:00
parent e9bd9a2128
commit 358f62be8a
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Wants=sshd-keygen.target
[Service]
Type=notify
EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config
EnvironmentFile=-/etc/sysconfig/sshd-permitrootlogin
EnvironmentFile=-/etc/sysconfig/sshd
ExecStart=/usr/sbin/sshd -D $OPTIONS $CRYPTO_POLICY $PERMITROOTLOGIN
ExecReload=/bin/kill -HUP $MAINPID

View File

@ -6,6 +6,7 @@ After=sshd-keygen.target
[Service]
EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config
EnvironmentFile=-/etc/sysconfig/sshd-permitrootlogin
EnvironmentFile=-/etc/sysconfig/sshd
ExecStart=-/usr/sbin/sshd -i $OPTIONS $CRYPTO_POLICY
ExecStart=-/usr/sbin/sshd -i $OPTIONS $CRYPTO_POLICY $PERMITROOTLOGIN
StandardInput=socket