From 1cba46f3a11d33ddb08cfb9a05ef27c4fb6328cc Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 9 Jun 2016 14:29:50 -0400 Subject: [PATCH] Do not grep a non-existent file --- tests.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests.mk b/tests.mk index 8754486df..8549d8259 100644 --- a/tests.mk +++ b/tests.mk @@ -36,9 +36,11 @@ else ifeq ($(shell grep dokku.me /root/.ssh/config),) echo "Host 127.0.0.1 \\r\\n Port 22333 \\r\\n RequestTTY yes \\r\\n IdentityFile /root/.ssh/dokku_test_rsa" >> /root/.ssh/config endif +ifneq ($(wildcard /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 restart ssh +endif endif @echo "-----> Installing SSH public key..."