summaryrefslogtreecommitdiff
path: root/templates/service/ssh/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-07 09:58:32 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-07 09:58:32 -0800
commit9100ddd1059a048b2e0b3aff7d3a50a910e3b57c (patch)
treeb5883d09ef78b5a33f6630a9c627a8c2ddbd2b08 /templates/service/ssh/node.def
parentb75536310da269b906f8733c33c0c25eeb337951 (diff)
downloadvyatta-cfg-quagga-9100ddd1059a048b2e0b3aff7d3a50a910e3b57c.tar.gz
vyatta-cfg-quagga-9100ddd1059a048b2e0b3aff7d3a50a910e3b57c.zip
Always restart ssh
Need to do restart of ssh daemon. Rewriting config file is faster than checking
Diffstat (limited to 'templates/service/ssh/node.def')
-rw-r--r--templates/service/ssh/node.def6
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