From 23011bd9ab5cfa5bb300591bd83da5fcf3d66eb7 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Mon, 1 Feb 2016 17:55:42 +0100 Subject: [PATCH] fix openssh config bug --- post-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/post-install.sh b/post-install.sh index f5bc97c..77d8d88 100755 --- a/post-install.sh +++ b/post-install.sh @@ -94,8 +94,8 @@ alpi_basics(){ if [ "$yn" == "y" ]; then sudo pacman -S --needed --noconfirm vim rsync acpi parted imagemagick lynx wget alsa-utils tmux git openssh knockd bluez-utils htop print_msg 'securing ssh' - sed -i.back 's/^#PermitEmptyPasswords.*/PermitEmptyPasswords no/' - sed -i.back 's/^#PermitRootLogin.*/PermitRootLogin no/' + sed -i.back 's/^#PermitEmptyPasswords.*/PermitEmptyPasswords no/' /etc/ssh/sshd_config + sed -i.back 's/^#PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config sudo systemctl enable sshd sudo systemctl start sshd alpi_avahi @@ -364,7 +364,7 @@ alpi_lamp(){ read yn yn=${yn:-y} if [ "$yn" == "y" ]; then - sudo pacman -S --needed --noconfirm apache php php-apache phpmyadmin php-mcrypt + sudo pacman -S --needed --noconfirm apache php php-apache phpmyadmin php-mcrypt php-gd print_question "Should we install and configure mysql (if not already done)? [y|N] " read sql sql=${sql:-n}