Fixed fail2ban and replaced cent8 with el8
This commit is contained in:
@@ -15,7 +15,7 @@ sed -i 's/upload_max_filesize = 2/upload_max_filesize = 128/g' "$phpMainConf"
|
||||
sed -i 's/post_max_size = 8/post_max_size = 64/g' "$phpMainConf"
|
||||
|
||||
|
||||
if [ "$shortdist" = "cent8" ]; then
|
||||
if [ "$shortdist" = "el8" ]; then
|
||||
# Centos Mysql config
|
||||
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
|
||||
|
||||
@@ -5,7 +5,7 @@ if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb
|
||||
phpMainConf=/etc/php/${phpver}/fpm/php.ini
|
||||
phpFPMService=php${phpver}-fpm
|
||||
|
||||
elif [ "$shortdist" = "cent8" ]; then
|
||||
elif [ "$shortdist" = "el8" ]; then
|
||||
# Centos Php variable
|
||||
phpPoolDir=/etc/opt/remi/php${phpver//.}/php-fpm.d/
|
||||
phpPkgName=php${phpver//.}-php
|
||||
|
||||
@@ -4,7 +4,7 @@ if [ "$shortdist" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb
|
||||
# Debian/Ubunbtu redis variables
|
||||
redisService=redis-server
|
||||
|
||||
elif [ "$shortdist" = "cent8" ]; then
|
||||
elif [ "$shortdist" = "el8" ]; then
|
||||
# Centos redis variable
|
||||
redisService=redis
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user