From fc92ec599e54f6ecdc4924d09dd1388c8dcec8f0 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 21 Feb 2018 18:05:09 +0100 Subject: ubuntu-16.04/preseed.cfg: fix regex to also match PermitRootLogin option in sshd config when it is commented --- http/ubuntu-16.04/preseed.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http') 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 -- cgit v1.2.3-55-g7522