diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-22 19:17:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 19:17:30 +0200 |
commit | 544e606af3fb92d3a49d4b9ee6fd1910b457132f (patch) | |
tree | b802b36292c5667bffd5acccd536ad0882baee21 | |
parent | 537706e0c640bc48e90af6636b1063da8101a8c4 (diff) | |
parent | 08b8d5a4b5c6a0dc4281ef7d86824c65cc2bffd1 (diff) | |
download | vyos-1x-544e606af3fb92d3a49d4b9ee6fd1910b457132f.tar.gz vyos-1x-544e606af3fb92d3a49d4b9ee6fd1910b457132f.zip |
Merge pull request #3705 from vyos/mergify/bp/circinus/pr-3702
op-mode: T6503: "restart ssh" command not working (backport #3702)
-rw-r--r-- | op-mode-definitions/restart-ssh.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/restart-ssh.xml.in b/op-mode-definitions/restart-ssh.xml.in index 6504cc18a..543cafc24 100644 --- a/op-mode-definitions/restart-ssh.xml.in +++ b/op-mode-definitions/restart-ssh.xml.in @@ -6,7 +6,7 @@ <properties> <help>Restart SSH service</help> </properties> - <command>if cli-shell-api existsActive service ssh; then sudo systemctl restart ssh.service; else echo "Service SSH not configured"; fi</command> + <command>if cli-shell-api existsActive service ssh; then sudo systemctl restart "ssh@*.service"; else echo "Service SSH not configured"; fi</command> </node> </children> </node> |