blob: 21c85e59fab17f78744c86150d361ae7d0588c11 (
plain)
1
2
3
4
5
6
7
8
|
type: bool
default: false
help: Enable/disable root login over ssh
update: if [ "$VAR(@)" == "true" ];
then regex='/^PermitRootLogin/s/no/yes/'
else regex='/^PermitRootLogin/s/yes/no/'
fi
sed -i -e "$regex" /etc/ssh/sshd_config
|