diff options
Diffstat (limited to 'templates/service/ssh/node.def')
-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 |