fix: only uncomment port for sshd-config
This commit is contained in:
1 parent
6cc6d5a33f
commit
beef464cc1
1 file changed
+2
-2
@@ -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..."
|
||||
|
||||
Reference in new issue
Block a user