public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: Brian Dolbec <dolsen@gentoo.org>
To: gentoo-catalyst@lists.gentoo.org
Cc: "W. Trevor King" <wking@tremily.us>
Subject: Re: [gentoo-catalyst] [PATCH] livecdfs-update.sh: Fix '/etc/sshd' check for sshd_config tweaks
Date: Sun, 03 Mar 2013 08:13:37 -0800	[thread overview]
Message-ID: <1362327217.25081.12.camel@big_daddy.dol-sen.ca> (raw)
In-Reply-To: <a0100e7d5c8905c99230cac46b963718d3826f5a.1362315628.git.wking@tremily.us>

On Sun, 2013-03-03 at 08:01 -0500, W. Trevor King wrote:
> From: "W. Trevor King" <wking@tremily.us>
> 
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  mode change 100644 => 100755 targets/support/livecdfs-update.sh
> 
> diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh
> old mode 100644
> new mode 100755
> index 77d694e..f4b2c45
> --- a/targets/support/livecdfs-update.sh
> +++ b/targets/support/livecdfs-update.sh
> @@ -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


It would be better to move the hard coding out of the bash script and
either into the config defaults or in this case (it's only used in the
one target) added to the target stage py file.  In that way the default
value can be overwritten in the target spec file. 



  reply	other threads:[~2013-03-03 16:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 13:01 [gentoo-catalyst] [PATCH] livecdfs-update.sh: Fix '/etc/sshd' check for sshd_config tweaks W. Trevor King
2013-03-03 16:13 ` Brian Dolbec [this message]
2013-03-03 16:21   ` W. Trevor King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1362327217.25081.12.camel@big_daddy.dol-sen.ca \
    --to=dolsen@gentoo.org \
    --cc=gentoo-catalyst@lists.gentoo.org \
    --cc=wking@tremily.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox