From ba85dc8c334f75a97b8093597ed26cc36afa08b4 Mon Sep 17 00:00:00 2001 From: trevorb Date: Tue, 30 Sep 2025 16:37:32 +1000 Subject: [PATCH] bugs 13198, 13201, 13202 & 13202 --- root/usr/bin/rocky2sme | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/root/usr/bin/rocky2sme b/root/usr/bin/rocky2sme index 956c91a..b78d4f0 100644 --- a/root/usr/bin/rocky2sme +++ b/root/usr/bin/rocky2sme @@ -10,6 +10,12 @@ sed -i -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config setenforce 0 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" ip address > /root/rocky2sme-prenetwork ; ip route >>/root/rocky2sme-prenetwork @@ -32,7 +38,7 @@ dnf --enablerepo=* clean all 1>/dev/null echo "##########################################################################" 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... rm /etc/yum.repos.d/Rocky*.repo -rf @@ -41,7 +47,7 @@ echo "########################################################################## echo "dnf set modules:" dnf module switch-to -y php:remi-8.4 #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 enable -y redis:remi-7.2 dnf module enable -y httpd:2.4 @@ -59,7 +65,7 @@ dnf module enable -y freeradius:3.0 echo "##########################################################################" echo "dnf install, installing SME Server ... this may take a while:" -dnf install @smeserver -y +dnf install @smeserver -y 1>/dev/null # check 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 httpd-e-smith smanager # fix radiusd not starting -/sbin/e-smith/ignal-event smeserver-radiusd-update +/sbin/e-smith/signal-event smeserver-radiusd-update