Skip to content

Commit

Permalink
SYS-610 fix mythtv-backend entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
instantlinux committed Jul 29, 2023
1 parent 90726ac commit d01e1bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions images/mythtv-backend/src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ for file in $CONF_DIR/mythweb.conf $CONF_DIR/mythweb-settings.conf \
-e "s/{{ LOCALHOSTNAME }}/$LOCALHOSTNAME/" $file
done

if [ ! -f /etc/ssh/.keys_generated ] && \
if [ ! -f /etc/ssh/ssh_host_rsa_key ] && \
! grep -q '^[[:space:]]*HostKey[[:space:]]' /etc/ssh/sshd_config; then
rm /etc/ssh/ssh_host*
ssh-keygen -A
touch /etc/ssh/.keys_generated
rm -f /etc/ssh/ssh_host*
dpkg-reconfigure openssh-server
fi
mkdir -p /var/run/sshd

Expand Down

0 comments on commit d01e1bf

Please sign in to comment.