From 1a93f8eed0394cc01d8b10357241a4e2367713c2 Mon Sep 17 00:00:00 2001 From: hilschernetpi Date: Mon, 8 Jun 2020 07:30:05 +0200 Subject: [PATCH] set os-release ID to Raspbian --- Dockerfile | 3 ++- init.d/entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0baf018..3d4a5e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.vcs-ref=$VCS_REF #version -ENV HILSCHERNETPI_RASPBIAN_VERSION 1.2.3 +ENV HILSCHERNETPI_RASPBIAN_VERSION 1.2.4 #labeling LABEL maintainer="netpi@hilscher.com" \ @@ -164,6 +164,7 @@ RUN apt-get update \ && mkdir /etc/firmware \ && curl -o /etc/firmware/BCM43430A1.hcd -L https://github.com/OpenELEC/misc-firmware/raw/master/firmware/brcm/BCM43430A1.hcd \ && wget https://raw.githubusercontent.com/raspberrypi/firmware/1.20180417/opt/vc/bin/vcmailbox -O /opt/vc/bin/vcmailbox \ + && sudo sed -i 's@debian@Raspbian@g' -i /usr/lib/os-release \ && apt-get remove git \ && apt-get autoremove \ && rm -rf /tmp/* \ diff --git a/init.d/entrypoint.sh b/init.d/entrypoint.sh index b95aa61..7c64c73 100755 --- a/init.d/entrypoint.sh +++ b/init.d/entrypoint.sh @@ -25,7 +25,7 @@ term_handler() { trap 'kill ${!}; term_handler' SIGINT SIGKILL SIGTERM SIGQUIT SIGTSTP SIGSTOP SIGHUP echo "starting SSH server ..." -if [ "SSHPORT" ]; then +if [ "$SSHPORT" ]; then #there is an alternative SSH port configured echo "the container binds the SSH server port to the configured port $SSHPORT" sed -i -e "s;#Port 22;Port $SSHPORT;" /etc/ssh/sshd_config