diff options
author | Christian Rößler | 2015-02-25 15:13:07 +0100 |
---|---|---|
committer | Christian Rößler | 2015-02-25 15:13:07 +0100 |
commit | cb0f928a6b5bdf546d8f457f995da9dd9bc0f62e (patch) | |
tree | 7fe7522e3dd0e75188fca61833785e9c9c2989f3 /satellit_installer/includes/10-script_dropper.inc | |
parent | [SSPS] More functions moved to rc.local-started script [untested, keep care!] (diff) | |
download | setup-scripts-cb0f928a6b5bdf546d8f457f995da9dd9bc0f62e.tar.gz setup-scripts-cb0f928a6b5bdf546d8f457f995da9dd9bc0f62e.tar.xz setup-scripts-cb0f928a6b5bdf546d8f457f995da9dd9bc0f62e.zip |
[SSPS] Some more stuff moved, bug fix
Diffstat (limited to 'satellit_installer/includes/10-script_dropper.inc')
-rw-r--r-- | satellit_installer/includes/10-script_dropper.inc | 13 |
1 files changed, 3 insertions, 10 deletions
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 |