Update dapostinstall.sh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user