diff --git a/src/etc/one-context.d/loc-24-ssh_host_key##deb b/src/etc/one-context.d/loc-24-ssh_host_key##deb new file mode 100755 index 0000000..8bf283a --- /dev/null +++ b/src/etc/one-context.d/loc-24-ssh_host_key##deb @@ -0,0 +1,6 @@ +#!/bin/bash + +if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then + DEBIAN_FRONTEND=noninteractive dpkg-reconfigure openssh-server +fi + diff --git a/src/etc/one-context.d/net-12-ssh_host_key##deb b/src/etc/one-context.d/net-12-ssh_host_key##deb deleted file mode 100755 index d9bb27f..0000000 --- a/src/etc/one-context.d/net-12-ssh_host_key##deb +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then - dpkg-reconfigure openssh-server -fi -