From f1fc56214320c0c34299a0389c742ce2ad86f7e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Tue, 9 Apr 2024 18:42:14 +0200 Subject: [PATCH] Use yunohost cmd to retrive ssh port --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 8702cf6..09a83c3 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,7 +3,7 @@ #================================================= systemd_match_start_line='Starting new Web server: tcp:127.0.0.1:' -ssh_port=$(grep -P "Port\s+\d+" /etc/ssh/sshd_config | grep -P -o "\d+") +ssh_port=$(yunohost settings get security.ssh.ssh_port) #================================================= # DEFINE ALL COMMON FONCTIONS