]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix TEST-74-AUX-UTILS.ssh.sh on SUSE 33577/head
authorFranck Bui <fbui@suse.com>
Tue, 2 Jul 2024 16:55:17 +0000 (18:55 +0200)
committerFranck Bui <fbui@suse.com>
Tue, 2 Jul 2024 17:07:03 +0000 (19:07 +0200)
test/units/TEST-74-AUX-UTILS.ssh.sh

index 5d87d9f7acd3b185f4da340a4cf9bd0f74dc0c1b..79055a18416be82c10bb715cb0d6383ce3af033a 100755 (executable)
@@ -46,7 +46,10 @@ test -f /etc/ssh/ssh_host_rsa_key || ssh-keygen -t rsa -C '' -N '' -f /etc/ssh/s
 echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
 echo "LogLevel DEBUG3" >> /etc/ssh/sshd_config
 
-test -f /etc/ssh/ssh_config || echo 'Include /etc/ssh/ssh_config.d/*.conf' > /etc/ssh/ssh_config
+test -f /etc/ssh/ssh_config || {
+    echo 'Include /etc/ssh/ssh_config.d/*.conf'
+    echo 'Include /usr/etc/ssh/ssh_config.d/*.conf'
+} >/etc/ssh/ssh_config
 
 # ssh wants this dir around, but distros cannot agree on a common name for it, let's just create all that are aware of distros use
 mkdir -p /usr/share/empty.sshd /var/empty /var/empty/sshd /run/sshd