We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90726ac commit d01e1bfCopy full SHA for d01e1bf
1 file changed
images/mythtv-backend/src/entrypoint.sh
@@ -46,11 +46,10 @@ for file in $CONF_DIR/mythweb.conf $CONF_DIR/mythweb-settings.conf \
46
-e "s/{{ LOCALHOSTNAME }}/$LOCALHOSTNAME/" $file
47
done
48
49
-if [ ! -f /etc/ssh/.keys_generated ] && \
+if [ ! -f /etc/ssh/ssh_host_rsa_key ] && \
50
! grep -q '^[[:space:]]*HostKey[[:space:]]' /etc/ssh/sshd_config; then
51
- rm /etc/ssh/ssh_host*
52
- ssh-keygen -A
53
- touch /etc/ssh/.keys_generated
+ rm -f /etc/ssh/ssh_host*
+ dpkg-reconfigure openssh-server
54
fi
55
mkdir -p /var/run/sshd
56
0 commit comments