]> git.proxmox.com Git - dab.git/commitdiff
do not regenerate sshd host keys
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 29 Jun 2015 05:53:10 +0000 (07:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 29 Jun 2015 05:53:10 +0000 (07:53 +0200)
This needs to be done when we create/clone a container.

DAB.pm

diff --git a/DAB.pm b/DAB.pm
index f4a62763a4ce983707b0c4357cfeaa6f252e3af4..138d1df0a6092686771956b39c9bcd02b55d0c48 100644 (file)
--- a/DAB.pm
+++ b/DAB.pm
@@ -1104,9 +1104,9 @@ sub install_init_script {
     if ($suite eq 'etch' || $suite eq 'lenny') {
        $self->ve_command ("update-rc.d $base start $prio $runlevel .");
     } elsif ($suite eq 'vivid') {
-       # fixme: howto do this with systemd?
+       die "unable to install init script (system uses systemd)\n";
     } elsif ($suite eq 'trusty') {
-       # fixme: howto do this with upstart?
+       die "unable to install init script (system uses upstart)\n";
     } else {
        $self->ve_command ("insserv $base");
     }
@@ -1338,9 +1338,6 @@ EOD
     # reset password
     $self->ve_command ("usermod -L root");
 
-    # regenerate sshd host keys
-    $self->install_init_script ($script_ssh_init, 2, 14);
-
     if ($mta eq 'postfix') {
        $data = "postfix postfix/main_mailer_type select No configuration\n";
        $self->ve_debconfig_set ($data);