summaryrefslogtreecommitdiff
path: root/templates/service/ssh/allow-root/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/ssh/allow-root/node.def')
-rw-r--r--templates/service/ssh/allow-root/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/service/ssh/allow-root/node.def b/templates/service/ssh/allow-root/node.def
index f476087d..9aa98826 100644
--- a/templates/service/ssh/allow-root/node.def
+++ b/templates/service/ssh/allow-root/node.def
@@ -1,6 +1,7 @@
-type: bool
+type: txt
default: false
help: Enable/disable root login over ssh
+syntax:expression: $VAR(@) in "true", "false" ; "must be true or false"
update: if [ \"$VAR(@)\" == \"true\" ]; then
sudo ed - /etc/ssh/sshd_config <<-"EOF"
/^PermitRootLogin/s/no/yes/