summaryrefslogtreecommitdiffstats
path: root/satellit_installer/includes/10-script_dropper.inc
diff options
context:
space:
mode:
authorChristian Rößler2015-02-25 15:13:07 +0100
committerChristian Rößler2015-02-25 15:13:07 +0100
commitcb0f928a6b5bdf546d8f457f995da9dd9bc0f62e (patch)
tree7fe7522e3dd0e75188fca61833785e9c9c2989f3 /satellit_installer/includes/10-script_dropper.inc
parent[SSPS] More functions moved to rc.local-started script [untested, keep care!] (diff)
downloadsetup-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.inc13
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