diff options
author | Jon Clausen <jac@nordu.net> | 2018-09-04 15:33:36 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-09-04 15:33:36 +0200 |
commit | f9ef6406766a9b177561882db9317a775c0c29d3 (patch) | |
tree | e56606877c883491e647b1986ff001018e3910e1 /ks-template | |
parent | 8e8b3a466e462253965b3c7f85f2296c732a45f2 (diff) |
-i '' has suddenly become an issue for sed...
Diffstat (limited to 'ks-template')
-rw-r--r-- | ks-template/hw/dell/R7425/100g-dtn.ks | 5 | ||||
-rw-r--r-- | ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/ks-template/hw/dell/R7425/100g-dtn.ks b/ks-template/hw/dell/R7425/100g-dtn.ks index 37ea0ea..ecaa851 100644 --- a/ks-template/hw/dell/R7425/100g-dtn.ks +++ b/ks-template/hw/dell/R7425/100g-dtn.ks @@ -58,8 +58,9 @@ rng-tools %post # %post # disallow root login via ssh: -/bin/sed -i '' -e 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config -/bin/sed -i '' -e 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config +/bin/sed -ie 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config +/bin/sed -ie 's/#ListenAddress 0.0.0.0/ListenAddress PRIIP/' /etc/ssh/sshd_config +/bin/sed -ie 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config # GRUB stuffs: # anaconda insists on adding 'rhgb quiet' to the kernel commandline, so: diff --git a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks index 6c93a4f..77acd86 100644 --- a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks +++ b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks @@ -61,9 +61,9 @@ rng-tools %post # %post # disallow root login via ssh: -/bin/sed -i '' -e 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config -/bin/sed -i '' -e 's/#ListenAddress 0.0.0.0/ListenAddress PRIIP/' /etc/ssh/sshd_config -/bin/sed -i '' -e 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config +/bin/sed -ie 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config +/bin/sed -ie 's/#ListenAddress 0.0.0.0/ListenAddress PRIIP/' /etc/ssh/sshd_config +/bin/sed -ie 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config # Set up secondary interface routing: #SIR#echo -e "1024\tmi-01" >>/etc/iproute2/rt_tables |