summaryrefslogtreecommitdiff
path: root/templates/service/ssh
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/ssh')
-rw-r--r--templates/service/ssh/allow-root/node.def8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/service/ssh/allow-root/node.def b/templates/service/ssh/allow-root/node.def
index 9aa98826..058735ed 100644
--- a/templates/service/ssh/allow-root/node.def
+++ b/templates/service/ssh/allow-root/node.def
@@ -1,7 +1,6 @@
-type: txt
+type: bool
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/
@@ -13,4 +12,7 @@ update: if [ \"$VAR(@)\" == \"true\" ]; then
wq
EOF
fi
- /bin/true
+comp_help: possible completions:
+ true Allow root to login over ssh
+ false Don't allow root to login over ssh(default)
+