diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-07 09:58:32 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-11-07 09:58:32 -0800 |
commit | 9100ddd1059a048b2e0b3aff7d3a50a910e3b57c (patch) | |
tree | b5883d09ef78b5a33f6630a9c627a8c2ddbd2b08 /templates | |
parent | b75536310da269b906f8733c33c0c25eeb337951 (diff) | |
download | vyatta-cfg-system-9100ddd1059a048b2e0b3aff7d3a50a910e3b57c.tar.gz vyatta-cfg-system-9100ddd1059a048b2e0b3aff7d3a50a910e3b57c.zip |
Always restart ssh
Need to do restart of ssh daemon.
Rewriting config file is faster than checking
Diffstat (limited to 'templates')
-rw-r--r-- | templates/service/ssh/node.def | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/templates/service/ssh/node.def b/templates/service/ssh/node.def index 585357dd..dbe32a6f 100644 --- a/templates/service/ssh/node.def +++ b/templates/service/ssh/node.def @@ -12,7 +12,5 @@ end: if [ -z "$VAR(port/@)" ]; then exit 0; fi; *) VER=2;; esac; STR="SSHD_OPTS=\"-p $VAR(port/@) -o Hostkey=/etc/ssh/ssh_host_key -o Protocol=${VER}\"" - if ! grep -q -s "^$STR" /etc/default/ssh; then - sudo sh -c "echo '$STR' > /etc/default/ssh" - sudo /usr/sbin/invoke-rc.d ssh restart - fi + sudo sh -c "echo '$STR' > /etc/default/ssh" + sudo /usr/sbin/invoke-rc.d ssh restart |