1 |
diff -Nur --no-dereference smeserver-centos2sme-6.9.1.old/root/usr/bin/centos2sme smeserver-centos2sme-6.9.1/root/usr/bin/centos2sme |
diff -Nur --no-dereference 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 2021-03-19 22:55:54.307000000 -0400 |
--- smeserver-centos2sme-6.9.1.old/root/usr/bin/centos2sme 2021-03-19 22:55:54.307000000 -0400 |
3 |
+++ smeserver-centos2sme-6.9.1/root/usr/bin/centos2sme 2021-03-20 00:22:09.324000000 -0400 |
+++ smeserver-centos2sme-6.9.1/root/usr/bin/centos2sme 2021-03-20 14:56:16.149000000 -0400 |
4 |
@@ -27,14 +27,15 @@ |
@@ -27,14 +27,15 @@ |
5 |
echo "cleaning yum cache" |
echo "cleaning yum cache" |
6 |
yum --enablerepo=* clean all 1>/dev/null |
yum --enablerepo=* clean all 1>/dev/null |
54 |
echo "##########################################################################" |
echo "##########################################################################" |
55 |
echo "set SSHD to accept root login with rsa key" |
echo "set SSHD to accept root login with rsa key" |
56 |
/sbin/e-smith/db configuration setprop sshd status enabled PermitRootLogin yes access public |
/sbin/e-smith/db configuration setprop sshd status enabled PermitRootLogin yes access public |
57 |
+/sbin/e-smith/expand-template /etc/e-smith/events/remoteaccess-update/templates2expand/etc/ssh/ssh_config |
+/sbin/e-smith/expand-template /etc/ssh/ssh_config |
58 |
+/sbin/e-smith/expand-template /etc/e-smith/events/remoteaccess-update/templates2expand/etc/ssh/sshd_config |
+/sbin/e-smith/expand-template /etc/ssh/sshd_config |
59 |
+/usr/bin/systemctl restart sshd.service |
+/usr/bin/systemctl restart sshd.service |
60 |
+# a sshd reload does not regenerate the keys and failed |
+# a sshd reload does not regenerate the keys and failed |
61 |
+# doing one after to do the rest (masq etc.) |
+# doing one after to do the rest (masq etc.) |
62 |
/sbin/e-smith/signal-event remoteaccess-update |
/sbin/e-smith/signal-event remoteaccess-update |
63 |
|
|
64 |
echo "##########################################################################" |
echo "##########################################################################" |
65 |
|
@@ -138,8 +147,12 @@ |
66 |
|
fi |
67 |
|
|
68 |
|
|
69 |
|
+echo "##########################################################################" |
70 |
|
+echo "Last cleaning:" |
71 |
|
# last tidying |
72 |
|
find /var/service/ -type f -iname control -exec rm {} \; |
73 |
|
+yum remove NetworkManager-libnm libteam teamd python-configobj parted python-decorator python-linux-procf python-perf python-pyude python-schedutils python-slip python-slip-dbu mozjs17 microcode_ctl -y |
74 |
|
+ |
75 |
|
|
76 |
|
# just in case before reboot |
77 |
|
/sbin/e-smith/db configuration set PasswordSet yes |