livecdfs-update.sh: Fix '/etc/sshd' check for sshd_config tweaks sshd-tweak
authorW. Trevor King <wking@tremily.us>
Sun, 3 Mar 2013 12:58:16 +0000 (07:58 -0500)
committerW. Trevor King <wking@tremily.us>
Sat, 14 Dec 2013 05:28:30 +0000 (21:28 -0800)
sshd_config lives in /etc/ssh, not /etc/sshd.  This typo has been
present since the block was introduced by c06264e (Initial import of
Catalyst 2.0.0, 2005-04-04), so it's obviously not a widely used
feature ;).  It might be better to just remove the block entirely.

targets/support/livecdfs-update.sh

index 77d694ef0c0562dfa29e8087fda2840cf631cf2e..f4b2c455eedebb5f0133bc7fe226fd919c62676a 100644 (file)
@@ -5,7 +5,7 @@ RUN_DEFAULT_FUNCS="no"
 source /tmp/chroot-functions.sh
 
 # Allow root logins to our CD by default
-if [ -e /etc/sshd/sshd_config ]
+if [ -e /etc/ssh/sshd_config ]
 then
        sed -i 's:^#PermitRootLogin\ yes:PermitRootLogin\ yes:' \
                /etc/ssh/sshd_config