fix: ensure testing still works in docker container environments
This commit is contained in:
4
tests.mk
4
tests.mk
@@ -89,8 +89,8 @@ endif
|
|||||||
ifeq ($(shell grep 22333 /usr/lib/systemd/system/ssh.socket),)
|
ifeq ($(shell grep 22333 /usr/lib/systemd/system/ssh.socket),)
|
||||||
sed --in-place "s:^ListenStream=22:ListenStream=22 \\nListenStream=22333:g" /usr/lib/systemd/system/ssh.socket
|
sed --in-place "s:^ListenStream=22:ListenStream=22 \\nListenStream=22333:g" /usr/lib/systemd/system/ssh.socket
|
||||||
endif
|
endif
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload || true
|
||||||
systemctl restart ssh.socket
|
systemctl restart ssh.socket || service ssh restart
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@echo "-----> Installing SSH public key..."
|
@echo "-----> Installing SSH public key..."
|
||||||
|
|||||||
Reference in New Issue
Block a user