From 63d2f726a5ee1e81cd55d52174a65fc07cbabff2 Mon Sep 17 00:00:00 2001 From: "Josh.5" Date: Wed, 31 Aug 2022 20:59:35 +1200 Subject: [PATCH] Ensure the SSH port is being set based on the provided env variable 'PORT_SSH' --- overlay/etc/cont-init.d/20-configre_sshd.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/overlay/etc/cont-init.d/20-configre_sshd.sh b/overlay/etc/cont-init.d/20-configre_sshd.sh index 3ed0f19..a2be8d5 100644 --- a/overlay/etc/cont-init.d/20-configre_sshd.sh +++ b/overlay/etc/cont-init.d/20-configre_sshd.sh @@ -9,7 +9,6 @@ chmod 744 /run/sshd echo "**** Configure SSH service ****"; -sed -i 's|^# Port 22.*$|Port 2222|' /etc/ssh/ssh_config -#echo 'Port 2222' > /etc/ssh/ssh_config.d/port.conf +sed -i "s|^# Port 22.*$|Port ${PORT_SSH}|" /etc/ssh/ssh_config echo "DONE"