Use yunohost cmd to retrive ssh port

This commit is contained in:
Josué Tille 2024-04-09 18:42:14 +02:00
parent 035adcf134
commit f1fc562143
No known key found for this signature in database
GPG Key ID: 5F259226AD51F2F5

View File

@ -3,7 +3,7 @@
#================================================= #=================================================
systemd_match_start_line='Starting new Web server: tcp:127.0.0.1:' 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 # DEFINE ALL COMMON FONCTIONS