Update dapostinstall.sh

This commit is contained in:
Marek Miklewicz
2022-05-13 19:54:27 +02:00
committed by GitHub
parent d9e9b689ee
commit 3f9c96f1e8
+5
View File
@@ -26,6 +26,10 @@ systemctl restart directadmin
read -p "Podaj port SSH [10022]: " SSH_PORT read -p "Podaj port SSH [10022]: " SSH_PORT
SSH_PORT=${SSH_PORT:-10022} 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" echo "Certyfikat SSL dla DirectAdmina"
while true; do while true; do
@@ -271,6 +275,7 @@ daupdate klucze
daupdate keyput daupdate keyput
systemctl restart sshd systemctl restart sshd
csf -r
cd $DAPOSTINSTALL_DIR cd $DAPOSTINSTALL_DIR
sh da_cli.sh disablenamed sh da_cli.sh disablenamed