diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-17 05:07:10 +0100 |
commit | 00286a5db286e21a766b6af057052dc5d17561ad (patch) | |
tree | 7232dadf6dc3570705c3104fe0c000f480c7a0ee /backend/modules/install_services | |
download | acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz |
Initial commit
Diffstat (limited to 'backend/modules/install_services')
-rw-r--r-- | backend/modules/install_services | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/backend/modules/install_services b/backend/modules/install_services new file mode 100644 index 0000000..e3b74c3 --- /dev/null +++ b/backend/modules/install_services @@ -0,0 +1,19 @@ +#!/bin/bash + +# Synopsis: configure_target_services +# +# This function configures the services and their autostart +function configure_target_services() +{ + send install_step configure_target_services + # prepare ssh + if [ /etc/init.d/ssh ]; then + if [ ! -e "$TARGET/etc/ssh/ssh_host_rsa_key" ]; then + ssh-keygen -q -t rsa -f "$TARGET/etc/ssh/ssh_host_rsa_key" -C '' -N '' + fi + if [ ! -e "$TARGET/etc/ssh/ssh_host_dsa_key" ]; then + ssh-keygen -q -t dsa -f "$TARGET/etc/ssh/ssh_host_dsa_key" -C '' -N '' + fi + fi +} + |