provision.pl - adjust root login regex

This commit is contained in:
gashapwn 2021-03-02 16:53:54 +00:00
parent 572d0ba0a7
commit 8d93df3368

View File

@ -169,7 +169,7 @@ system("rcctl enable haproxy");
system("rcctl start haproxy"); system("rcctl start haproxy");
# Disable root login # Disable root login
system("sed -i -e 's/^[^#]*PermitRootLogin.+$/PermitRootLogin no/' /etc/apache2/httpd2.conf"); system("sed -i -e 's/^[^#]*PermitRootLogin.*\$/PermitRootLogin no/' /etc/ssh/sshd_config");
printf("\n\nInstall complete\n"); printf("\n\nInstall complete\n");
printf("==================================================\n"); printf("==================================================\n");