bugs 13198, 13201, 13202 & 13202

This commit is contained in:
trevorb
2025-09-30 16:37:32 +10:00
parent d996e75cf4
commit ba85dc8c33

View File

@@ -10,6 +10,12 @@ sed -i -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
setenforce 0 setenforce 0
dnf remove selinux-policy-targeted setroubleshoot-server -y 1>/dev/null dnf remove selinux-policy-targeted setroubleshoot-server -y 1>/dev/null
echo "removing cockpit"
dnf remove -y cockpit* 1>/dev/null
echo "removing NetworkManager"
dnf remove -y NetworkManager 1>/dev/null
echo "copy of current network config in root/rocky2sme-prenetwork" echo "copy of current network config in root/rocky2sme-prenetwork"
ip address > /root/rocky2sme-prenetwork ; ip route >>/root/rocky2sme-prenetwork ip address > /root/rocky2sme-prenetwork ; ip route >>/root/rocky2sme-prenetwork
@@ -32,7 +38,7 @@ dnf --enablerepo=* clean all 1>/dev/null
echo "##########################################################################" echo "##########################################################################"
echo "dnf upgrade to install last updates, this may take a while, output is hidden unless there is an error, be patient:" echo "dnf upgrade to install last updates, this may take a while, output is hidden unless there is an error, be patient:"
yum upgrade -y 1>/dev/null dnf upgrade -y 1>/dev/null
# they might have come back with upgrade... # they might have come back with upgrade...
rm /etc/yum.repos.d/Rocky*.repo -rf rm /etc/yum.repos.d/Rocky*.repo -rf
@@ -41,7 +47,7 @@ echo "##########################################################################
echo "dnf set modules:" echo "dnf set modules:"
dnf module switch-to -y php:remi-8.4 dnf module switch-to -y php:remi-8.4
#dnf module switch-to -y imariadb:10.5 #dnf module switch-to -y imariadb:10.5
dnf module disable mariadb dnf module disable -y mariadb
dnf module switch-to -y python36:3.6 dnf module switch-to -y python36:3.6
dnf module enable -y redis:remi-7.2 dnf module enable -y redis:remi-7.2
dnf module enable -y httpd:2.4 dnf module enable -y httpd:2.4
@@ -59,7 +65,7 @@ dnf module enable -y freeradius:3.0
echo "##########################################################################" echo "##########################################################################"
echo "dnf install, installing SME Server ... this may take a while:" echo "dnf install, installing SME Server ... this may take a while:"
dnf install @smeserver -y dnf install @smeserver -y 1>/dev/null
# check # check
if [[ -f /sbin/e-smith/console ]]; then if [[ -f /sbin/e-smith/console ]]; then
@@ -169,4 +175,4 @@ echo "##########################################################################
/usr/bin/systemctl restart network wan tinydns dnscache dnscache.forwarder dhcpd /usr/bin/systemctl restart network wan tinydns dnscache dnscache.forwarder dhcpd
/usr/bin/systemctl restart httpd-e-smith smanager /usr/bin/systemctl restart httpd-e-smith smanager
# fix radiusd not starting # fix radiusd not starting
/sbin/e-smith/ignal-event smeserver-radiusd-update /sbin/e-smith/signal-event smeserver-radiusd-update