Updated Max attachment size, added php7.3-fpm to the restart services list
This commit is contained in:
@@ -404,6 +404,7 @@ sleep 2
|
|||||||
sed -i 's/body_size 8/body_size '$uploadsize'/g' /etc/nginx/nginx.conf
|
sed -i 's/body_size 8/body_size '$uploadsize'/g' /etc/nginx/nginx.conf
|
||||||
sed -i 's/attachment_size_limit = 25/attachment_size_limit = '$uploadsize'/g' /var/www/$domain/html/rainloop/data/_data_/_default_/configs/application.ini
|
sed -i 's/attachment_size_limit = 25/attachment_size_limit = '$uploadsize'/g' /var/www/$domain/html/rainloop/data/_data_/_default_/configs/application.ini
|
||||||
sed -i 's/max_filesize = 2/max_filesize = '$uploadsize'/g' /etc/php/$phpver/fpm/php.ini /etc/php/$phpver/cli/php.ini
|
sed -i 's/max_filesize = 2/max_filesize = '$uploadsize'/g' /etc/php/$phpver/fpm/php.ini /etc/php/$phpver/cli/php.ini
|
||||||
|
sed -i 's/post_max_size = 100/post_max_size = '$uploadsize'/g' /etc/php/$phpver/fpm/php.ini /etc/php/$phpver/cli/php.ini
|
||||||
|
|
||||||
##--------------##
|
##--------------##
|
||||||
# Fail2Ban #
|
# Fail2Ban #
|
||||||
@@ -442,7 +443,7 @@ wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$bra
|
|||||||
chmod +x /etc/update-motd.d/01-custom
|
chmod +x /etc/update-motd.d/01-custom
|
||||||
|
|
||||||
##---------##
|
##---------##
|
||||||
# Ufw #
|
# UFW #
|
||||||
##---------##
|
##---------##
|
||||||
msg " Configuring UFW"
|
msg " Configuring UFW"
|
||||||
sleep 2
|
sleep 2
|
||||||
@@ -457,7 +458,7 @@ sleep 2
|
|||||||
systemctl enable nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin > $OUTPUT 2>&1
|
systemctl enable nginx mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin > $OUTPUT 2>&1
|
||||||
systemctl disable amavis amavisd-snmp-subagent amavis-mc postfix dovecot> $OUTPUT 2>&1
|
systemctl disable amavis amavisd-snmp-subagent amavis-mc postfix dovecot> $OUTPUT 2>&1
|
||||||
systemctl stop amavis amavisd-snmp-subagent amavis-mc postfix dovecot > $OUTPUT 2>&1
|
systemctl stop amavis amavisd-snmp-subagent amavis-mc postfix dovecot > $OUTPUT 2>&1
|
||||||
systemctl restart sshd nginx mysql postfix@- fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin > $OUTPUT 2>&1
|
systemctl restart sshd nginx mysql postfix@- fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin php7.3-fpm > $OUTPUT 2>&1
|
||||||
|
|
||||||
##---------------------------------##
|
##---------------------------------##
|
||||||
# Updating ClamAV definitions #
|
# Updating ClamAV definitions #
|
||||||
|
|||||||
Reference in New Issue
Block a user