/[smecontribs]/rpms/smeserver-centos2sme/contribs10/smeserver-centos2sme-6.9.1-SME10-2.patch
ViewVC logotype

Contents of /rpms/smeserver-centos2sme/contribs10/smeserver-centos2sme-6.9.1-SME10-2.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Fri Apr 17 21:36:48 2020 UTC (4 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-centos2sme-6_9_1-10_el7_sme, smeserver-centos2sme-6_9_1-13_el7_sme, smeserver-centos2sme-6_9_1-12_el7_sme, smeserver-centos2sme-6_9_1-8_el7_sme, smeserver-centos2sme-6_9_1-11_el7_sme, smeserver-centos2sme-6_9_1-9_el7_sme, HEAD
Changes since 1.1: +48 -4 lines
* Fri Apr 17 2020 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-8.sme
- improve script
- TODO: *some deps are forced, might be added as dep for e-smith-base
        *some packages conflicting like nm and firewalld are removed should be done via e-smith-base

1 diff -Nur smeserver-centos2sme-6.9.1.old/root/usr/bin/centos2sme smeserver-centos2sme-6.9.1/root/usr/bin/centos2sme
2 --- smeserver-centos2sme-6.9.1.old/root/usr/bin/centos2sme 2020-04-17 15:33:36.446000000 -0400
3 +++ smeserver-centos2sme-6.9.1/root/usr/bin/centos2sme 2020-04-17 17:34:18.449000000 -0400
4 @@ -1,18 +1,18 @@
5 #!/bin/bash
6
7
8 -echo "Welcome to the CentOS to SME Server script. Ar you sure you have at least one ethernet interface before proceeding ? Hit Ctrl+C if unsure, press 'enter' if you are OK to proceed."
9 +echo "Welcome to the CentOS to SME Server script. Are you sure you have at least one ethernet interface before proceeding ? Hit Ctrl+C if unsure, press 'enter' if you are OK to proceed."
10 read testme
11
12 echo "disabling and removing SELinux"
13 -sed -i -e 's/rhgb quiet/selinux=0/g' /boot/grub/grub.conf
14 -sed -i -e 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
15 +sed -i -e 's/rhgb quiet/selinux=0/g' /boot/grub2/grub.cfg
16 +sed -i -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
17 setenforce 0
18 yum remove selinux-policy-targeted -y 1>/dev/null
19
20 echo "##########################################################################"
21 echo "setting yum repo for SME Server"
22 -mkdir /tmp/repo.bak
23 +mkdir -p /tmp/repo.bak
24 mv /etc/yum.repos.d/*.repo /tmp/repo.bak/
25 cp /etc/yum.prosmerepos.d/* /etc/yum.repos.d/
26
27 @@ -34,28 +34,25 @@
28 rpm -e --nodeps dhcp-common
29
30 echo "##########################################################################"
31 -echo "yum upgrade to install sme build of initscript:"
32 +echo "yum upgrade to install last updates, this may take a while, output is hidden unless there is an error, be patient:"
33 yum upgrade -y 1>/dev/null
34
35 -initscripts=`rpm -q initscripts`
36 -
37 -if [[ $initscripts =~ ^initscripts-[0-9.\-]*\.el[0-9_]+\.sme.*$ ]]; then
38 - echo "... OK";
39 -else
40 - echo "... something wrong try to manually install the SME version of initscripts.
41 -One possible reason of this is that initscripts from CentOS is a newest version /release than the one in SME repositories.";
42 - exit 1
43 -fi
44 -
45 -
46 # they might have come back with upgrade...
47 rm /etc/yum.repos.d/CentOS*.repo -rf
48
49 # would make a test here to check if initscript was updated or not ...
50 echo "##########################################################################"
51 -echo "yum groupinstall"
52 +echo "yum groupinstall, installing SME Server ... this may take a while:"
53 yum --disablerepo=* --enablerepo=smeos,smeupdates groupinstall base -y
54
55 +echo "##########################################################################"
56 +echo "add missing rpms, in case "
57 +yum install net-tools bind-utils vim-common vim-enhanced vim-filesystem wget yum-plugin-changelog wodim yum-cron zip traceroute tokyocabinet tmpwatch time telnet tdb-tools tcpdump sysfsutils syslinux strace setserial rsync rp-pppoe redhat-rpm-config unzip urlview usbutils usermode at bc boost-iostreams boost-random bzip2 cyrus-sasl cyrus-sasl-md5 device-mapper-multipath device-mapper-multipath-libs dwz ed elfutils fetchmail ftp gdb glib hdparm hesiod iptraf-ng iptstate iscsi-initiator-utils iscsi-initiator-utils-iscsiuio isdn4k-util librados2 lm_sensors lockdev logwatch lrzsz lsof mhash minicom mkbootdisk mlocate mtools mt-st mutt OpenIPMI OpenIPMI-libs OpenIPMI-modalias patch perl-srpm-macros perl-Sys-CPU perl-Sys-MemInfo perl-Thread-Queue psmisc python-dateutil python-srpm-macros redhat-rpm-config rpm-build isdn4k-utils qmail -y 1>/dev/null
58 +
59 +echo "##########################################################################"
60 +echo "removing unwanted rpm, in case "
61 +yum remove snappy selinux-policy wpa_supplicant virt-what tuned centos-logos chrony dracut-config-rescue dracut-network ebtables ethtool expect firewalld firewalld-filesystem fxload gobject-introspection iprutils ipset ipset-libs polkit-pkla-compat -y 1>/dev/null
62 +
63 # check
64 if [[ -f /sbin/e-smith/console ]]; then
65 echo "... all seems good untill now"

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed