From beef464cc19fe43500da20fb8e8a28309c7c3340 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 8 Apr 2019 13:42:01 -0400 Subject: [PATCH] fix: only uncomment port for sshd-config --- tests.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.mk b/tests.mk index 16a6fb2fd..c42dc22b3 100644 --- a/tests.mk +++ b/tests.mk @@ -69,11 +69,11 @@ else ifeq ($(shell grep dokku.me /root/.ssh/config),) endif ifneq ($(wildcard /etc/ssh/sshd_config),) + sed --in-place "s/^#Port 22$\/Port 22/g" /etc/ssh/sshd_config ifeq ($(shell grep 22333 /etc/ssh/sshd_config),) sed --in-place "s:^Port 22:Port 22 \\nPort 22333:g" /etc/ssh/sshd_config - sed --in-place "s:^#Port 22$:Port 22 \\nPort 22333:g" /etc/ssh/sshd_config - service ssh restart endif + service ssh restart endif @echo "-----> Installing SSH public key..."