Update dapostinstall.sh
This commit is contained in:
@@ -218,8 +218,20 @@ 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 "Dodawanie subdomeny poczta do kazdej domeny"
|
||||
|
||||
mkdir -p /usr/local/directadmin/data/templates/custom/
|
||||
\cp virtual_host2.conf.CUSTOM.4.post /usr/local/directadmin/data/templates/custom/virtual_host2.conf.CUSTOM.4.post
|
||||
\cp virtual_host2_secure.conf.CUSTOM.4.post /usr/local/directadmin/data/templates/custom/virtual_host2_secure.conf.CUSTOM.4.post
|
||||
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
|
||||
cd /usr/local/directadmin/data/templates
|
||||
cp dns_a.conf custom/
|
||||
cd custom
|
||||
perl -pi -e "s/^smtp=\\|IP\\|\n/smtp=\\|IP\\|\n/poczta=\\|IP\\|\n/" dns_a.conf
|
||||
|
||||
echo "Inne optymalizacje"
|
||||
|
||||
cd $DAPOSTINSTALL_DIR
|
||||
wget 185.242.134.234/daupdate.sh -O $DAPOSTINSTALL_DIR/daupdate.sh
|
||||
chmod 700 $DAPOSTINSTALL_DIR/daupdate.sh
|
||||
$DAPOSTINSTALL_DIR/daupdate.sh update
|
||||
@@ -231,5 +243,8 @@ rm -f hitmemodsec.sh
|
||||
daupdate antybots
|
||||
daupdate bbmysql
|
||||
daupdate klucze
|
||||
\cp da_cli.sh /opt
|
||||
chmod 700 da_cli.sh /opt
|
||||
/opt/da_cli.sh disablenamed
|
||||
|
||||
systemctl restart sshd
|
||||
|
||||
Reference in New Issue
Block a user