livecdfs-update.sh: Fix '/etc/sshd' check for sshd_config tweaks
authorW. Trevor King <wking@tremily.us>
Sun, 3 Mar 2013 12:58:16 +0000 (07:58 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 4 Jun 2013 16:25:01 +0000 (12:25 -0400)
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 0928f173b028fd17119ee83a3c8bf9659ca537af..5e578b06d10ec873c99fb6e3f7b7dbc4140546c3 100755 (executable)
@@ -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