diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-22 20:03:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 20:03:27 +0200 |
commit | 150b79439e55c19db019ed07b8af7371c9639983 (patch) | |
tree | bda34148aa9356df4dccc099011b25b05d1558db /op-mode-definitions | |
parent | 726c3270bb83b13ea7d3265dbb65c710225d0e39 (diff) | |
parent | b925e59451aca9af2cc495cacd1d6e30a76b8c22 (diff) | |
download | vyos-1x-150b79439e55c19db019ed07b8af7371c9639983.tar.gz vyos-1x-150b79439e55c19db019ed07b8af7371c9639983.zip |
Merge pull request #3704 from vyos/mergify/bp/sagitta/pr-3702
op-mode: T6503: "restart ssh" command not working (backport #3702)
Diffstat (limited to 'op-mode-definitions')
-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> |