From cb0f928a6b5bdf546d8f457f995da9dd9bc0f62e Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Wed, 25 Feb 2015 15:13:07 +0100 Subject: [SSPS] Some more stuff moved, bug fix --- satellit_installer/includes/10-script_dropper.inc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'satellit_installer/includes/10-script_dropper.inc') diff --git a/satellit_installer/includes/10-script_dropper.inc b/satellit_installer/includes/10-script_dropper.inc index 2178863..a174de3 100644 --- a/satellit_installer/includes/10-script_dropper.inc +++ b/satellit_installer/includes/10-script_dropper.inc @@ -27,16 +27,9 @@ drop_keychanger_rclocal() { cat > /etc/rc.local <<-HIERDOK #!/bin/bash echo "rc.local started: $(date "+%Y-%m-%d %H:%m:%S")" >> /root/init.log - echo "Deleting old ssh keys..." >> /root/init.log - rm -f /etc/ssh/ssh_host_*key* 2>/dev/null - echo -n "... done." - - echo "Generating new ssh keys..." >> /root/init.log - ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N "" -t rsa -q - ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N "" -t dsa -q - ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N "" -t ecdsa -q - echo -n "... done." >> /root/init.log - mv /etc/rc.local.sik /etc/rc.local + echo "Starting /root/installer/rclocal_script.sh..." >> /root/init.log + /root/installer/rclocal_script.sh + exit 0 HIERDOK chmod +x /etc/rc.local fi -- cgit v1.2.3-55-g7522