summaryrefslogtreecommitdiffstats
path: root/http
diff options
context:
space:
mode:
authorJonathan Bauer2018-02-21 18:05:09 +0100
committerJonathan Bauer2018-02-21 18:05:09 +0100
commitfc92ec599e54f6ecdc4924d09dd1388c8dcec8f0 (patch)
treeb590949f726e83fc7bec42dbdab2565b715e112a /http
parentansible-roles: update revision (diff)
downloadpacker-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')
-rw-r--r--http/ubuntu-16.04/preseed.cfg2
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