diff options
author | Jonathan Bauer | 2018-02-21 18:05:09 +0100 |
---|---|---|
committer | Jonathan Bauer | 2018-02-21 18:05:09 +0100 |
commit | fc92ec599e54f6ecdc4924d09dd1388c8dcec8f0 (patch) | |
tree | b590949f726e83fc7bec42dbdab2565b715e112a /http/ubuntu-16.04 | |
parent | ansible-roles: update revision (diff) | |
download | packer-templates-fc92ec599e54f6ecdc4924d09dd1388c8dcec8f0.tar.gz packer-templates-fc92ec599e54f6ecdc4924d09dd1388c8dcec8f0.tar.xz packer-templates-fc92ec599e54f6ecdc4924d09dd1388c8dcec8f0.zip |
ubuntu-16.04/preseed.cfg: fix regex to also match PermitRootLogin option in sshd config when it is commented
Diffstat (limited to 'http/ubuntu-16.04')
-rw-r--r-- | http/ubuntu-16.04/preseed.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/ubuntu-16.04/preseed.cfg b/http/ubuntu-16.04/preseed.cfg index d99a94a..72e0ea4 100644 --- a/http/ubuntu-16.04/preseed.cfg +++ b/http/ubuntu-16.04/preseed.cfg @@ -47,7 +47,7 @@ d-i preseed/early_command string chmod +x /usr/lib/post-base-installer.d/90skip-tasksel d-i preseed/late_command string \ - in-target sed -i 's,^PermitRootLogin.*,PermitRootLogin yes,' /etc/ssh/sshd_config ; \ + in-target sed -i 's,^[# \t]*PermitRootLogin.*,PermitRootLogin yes,' /etc/ssh/sshd_config ; \ in-target apt-get update ; \ in-target apt-get -y upgrade |