Fixed Fail2Ban for centos
This commit is contained in:
@@ -20,6 +20,7 @@ if [ "$shortdist" = "el8" ]; then
|
||||
echo "pdo_mysql.default_socket = '/var/run/mysqld/mysqld.sock'" >> /etc/opt/remi/php${phpver//.}/php.d/60-mysql_sock.ini
|
||||
echo "mysql.default_socket = '/var/run/mysqld/mysqld.sock'" >> /etc/opt/remi/php${phpver//.}/php.d/60-mysql_sock.ini
|
||||
echo "mysqli.default_socket = '/var/run/mysqld/mysqld.sock'" >> /etc/opt/remi/php${phpver//.}/php.d/60-mysql_sock.ini
|
||||
echo "d /run/php 0755 www-data www-data - -" > /usr/lib/tmpfiles.d/php-custom.conf
|
||||
#Centos php Bin
|
||||
sudo ln -s /usr/bin/php${phpver//.} /usr/bin/php
|
||||
#Centos SeLinux
|
||||
|
||||
@@ -13,4 +13,6 @@ root: $email
|
||||
EOF
|
||||
newaliases
|
||||
|
||||
systemctl reload postfix postfix@-
|
||||
systemctl start postfix
|
||||
systemctl enable postfix
|
||||
systemctl reload postfix
|
||||
@@ -7,5 +7,7 @@ if [ -z "${domain}" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
||||
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
||||
if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
|
||||
debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
||||
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
||||
fi
|
||||
Reference in New Issue
Block a user