Ensure the SSH port is being set based on the provided env variable 'PORT_SSH'

This commit is contained in:
Josh.5
2022-08-31 20:59:35 +12:00
parent d49bee6547
commit 63d2f726a5

View File

@@ -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"