mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
deb12 fixes in postinst
This commit is contained in:
parent
e82378c935
commit
4d7ce60f39
1 changed files with 10 additions and 5 deletions
|
@ -26,7 +26,7 @@ fi
|
||||||
# chmod a=rw /usr/local/vesta/data/upgrades/show_changelog
|
# chmod a=rw /usr/local/vesta/data/upgrades/show_changelog
|
||||||
|
|
||||||
# Patching exim4.conf for: smtputf8_advertise_hosts
|
# Patching exim4.conf for: smtputf8_advertise_hosts
|
||||||
if [ "$release" -gt 10 ]; then
|
if [ "$release" -ge 11 ]; then
|
||||||
if [ -f "/etc/exim4/exim4.conf.template" ]; then
|
if [ -f "/etc/exim4/exim4.conf.template" ]; then
|
||||||
if ! grep -q 'smtputf8_advertise_hosts' /etc/exim4/exim4.conf.template; then
|
if ! grep -q 'smtputf8_advertise_hosts' /etc/exim4/exim4.conf.template; then
|
||||||
echo 'Patching exim4.conf for: smtputf8_advertise_hosts'
|
echo 'Patching exim4.conf for: smtputf8_advertise_hosts'
|
||||||
|
@ -47,7 +47,7 @@ if [ -f "/etc/exim4/exim4.conf.template" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Making sure yescrypt is disabled
|
# Making sure yescrypt is disabled
|
||||||
if [ "$release" -eq 11 ]; then
|
if [ "$release" -ge 11 ]; then
|
||||||
sed -i "s/yescrypt/sha512/g" /etc/pam.d/common-password
|
sed -i "s/yescrypt/sha512/g" /etc/pam.d/common-password
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -66,13 +66,18 @@ if [ "$release" -eq 11 ]; then
|
||||||
ADD=" hosts_try_fastopen = \!\*.l.google.com"
|
ADD=" hosts_try_fastopen = \!\*.l.google.com"
|
||||||
sed -i "s#$FIND#$FIND\n$ADD#g" /etc/exim4/exim4.conf.template
|
sed -i "s#$FIND#$FIND\n$ADD#g" /etc/exim4/exim4.conf.template
|
||||||
systemctl restart exim4
|
systemctl restart exim4
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
sed -i "s/net.ipv4.tcp_window_scaling/#net.ipv4.tcp_window_scaling/g" /etc/sysctl.conf
|
if [ "$release" -ge 11 ]; then
|
||||||
|
check_grep=$(grep -c '^net\.ipv4\.tcp_window_scaling' /etc/sysctl.conf)
|
||||||
|
if [ "$check_grep" -gt 0 ]; then
|
||||||
|
echo "=== Removing net.ipv4.tcp_window_scaling"
|
||||||
|
sed -i "s/net\.ipv4\.tcp_window_scaling/#net.ipv4.tcp_window_scaling/g" /etc/sysctl.conf
|
||||||
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling
|
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Adding Barracuda RBL to SpamAssassin
|
# Adding Barracuda RBL to SpamAssassin
|
||||||
if [ ! -f "/usr/local/vesta/data/upgrades/barracuda_rbl" ]; then
|
if [ ! -f "/usr/local/vesta/data/upgrades/barracuda_rbl" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue