mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
Fix the pattern for changing PermitRootLogin
The previous pattern had the (harmless) side-effect of duplicating the entry in the config file. No functional change intended. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/510
This commit is contained in:
parent
3687797618
commit
73358cd2cf
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ cust_comconsole ( ) (
|
|||
# Allow root login via ssh
|
||||
|
||||
cust_allow_ssh_root ( ) (
|
||||
sed -i "" -e '/PermitRootLogin/s/.*/PermitRootLogin yes/' \
|
||||
sed -i "" -E 's/^#?PermitRootLogin.*/PermitRootLogin yes/' \
|
||||
${NANO_WORLDDIR}/etc/ssh/sshd_config
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue