diff --git a/dapostinstall.sh b/dapostinstall.sh index 63a516c..407d5d5 100644 --- a/dapostinstall.sh +++ b/dapostinstall.sh @@ -26,6 +26,10 @@ systemctl restart directadmin read -p "Podaj port SSH [10022]: " SSH_PORT SSH_PORT=${SSH_PORT:-10022} +sed -i '/Port 22/s/^#//g' /etc/ssh/sshd_config +sed -i "s/Port 22/Port $SSH_PORT/g" /etc/ssh/sshd_config +sed -i "s/,22,/,22,$SSH_PORT,/g" /etc/csf/csf.conf + echo "Certyfikat SSL dla DirectAdmina" while true; do @@ -271,6 +275,7 @@ daupdate klucze daupdate keyput systemctl restart sshd +csf -r cd $DAPOSTINSTALL_DIR sh da_cli.sh disablenamed