Hi Eric,
fedora41 -> fedora42
firewalld is not installed by default
dnf -y install firewalld
fail2ban installs exim
--exclude=exim
qmailadmin_login plugin does not exist
sed: can't read
/usr/share/squirrelmail/plugins/qmailadmin_login/config_default.php: No such
file or directory
See qt_install_alma10_diff.
xaf
--- /usr/local/bin/qt_install 2026-03-03 08:54:07.802464768 +0100
+++ /usr/local/bin/qt_install_alma10 2026-03-03 09:55:43.000000000 +0100
@@ -2,21 +2,26 @@
begin=`date`
-cat > /etc/yum.repos.d/fedora41.repo << EOF
-[fedora41]
-name=Fedora 41 RPM - x86_64
-baseurl=https://dl.fedoraproject.org/pub/fedora/linux/releases/41/Everything/\$basearch/os/
+# update, fedora41 -> fedora42
+
+cat > /etc/yum.repos.d/fedora42.repo << EOF
+[fedora42]
+name=Fedora 42 RPM - x86_64
+baseurl=https://dl.fedoraproject.org/pub/fedora/linux/releases/42/Everything/\$basearch/os/
enabled=0
gpgcheck=0
priority=100
-[fedora41-source]
-name=Fedora 41 SRPM - x86_64 Source
-baseurl=https://dl.fedoraproject.org/pub/fedora/linux/releases/41/Everything/source/tree/
+[fedora42-source]
+name=Fedora 42 SRPM - x86_64 Source
+baseurl=https://dl.fedoraproject.org/pub/fedora/linux/releases/42/Everything/source/tree/
enabled=0
gpgcheck=0
priority=100
EOF
+# update, firewalld is not installed
+dnf -y install firewalld
+
# Open necessary firewall port, and disable selinux
TAB="$(printf '\t')" && GREEN=$(tput setaf 2) && RED=$(tput setaf 1) &&
NORMAL=$(tput sgr0) && \
systemctl start firewalld && systemctl enable firewalld && \
@@ -26,11 +31,12 @@
echo -n "Reload firewall settings : " && tput setaf 2 && firewall-cmd
--reload && tput sgr0
setenforce 0 && sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/'
/etc/selinux/config && getenforce
-# Update minimal
+# Update minimal, fail2ban installs exim
dnf -y update
dnf -y install dnf-utils epel-release
dnf -y install logwatch bind bind-utils telnet yum-utils chrony acpid at
autofs bzip2 net-tools \
- smartmontools wget vsftpd mod_ssl fail2ban roundcubemail
php-mysqlnd chkconfig rsyslog
+ smartmontools wget vsftpd mod_ssl fail2ban roundcubemail
php-mysqlnd chkconfig rsyslog \
+ --exclude=exim
yum-config-manager --enable crb
dnf -y install mysql8.4 mysql8.4-server mysql8.4-common mysql8.4-libs
@@ -101,7 +107,7 @@
dnf -y install qmt-release-1-9.qt.el10.noarch.rpm
# Install Dspam
-dnf -y --enablerepo=fedora41 install dspam dspam-libs dspam-client dspam-mysql
dspam-web rspamd
+dnf -y --enablerepo=fedora42 install dspam dspam-libs dspam-client dspam-mysql
dspam-web rspamd
systemctl enable --now dspam rspamd
systemctl status dspam rspamd
@@ -117,7 +123,9 @@
chkconfig qmail on
sed -i 's/softlimit -m.*\\/softlimit -m 256000000 \\/'
/var/qmail/supervise/smtp/run
-sed -i 's|/cgi-bin||'
/usr/share/squirrelmail/plugins/qmailadmin_login/config_default.php
+
+# update, qmailadmin_login plugin does not exist
+#sed -i 's|/cgi-bin||'
/usr/share/squirrelmail/plugins/qmailadmin_login/config_default.php
sed -i -z 's/#LocalSocket/LocalSocket/2' /etc/clamd.d/scan.conf
chown -R clamupdate:clamupdate /var/lib/clamav
[ -f /etc/dovecot/dovecot.conf ] && mv /etc/dovecot/dovecot.conf
/etc/dovecot/dovecot.conf.bak
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]