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 2018-03-09 14:43:39.000000000 -0500 |
3 |
+++ smeserver-centos2sme-6.9.1/root/usr/bin/centos2sme 2018-03-10 12:19:59.530000000 -0500 |
4 |
@@ -1,5 +1,9 @@ |
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 |
+read testme |
10 |
+ |
11 |
echo "disabling and removing SELinux" |
12 |
sed -i -e 's/rhgb quiet/selinux=0/g' /boot/grub/grub.conf |
13 |
sed -i -e 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config |
14 |
@@ -36,6 +40,9 @@ |
15 |
echo "yum groupinstall" |
16 |
yum --disablerepo=* --enablerepo=smeos,smeupdates groupinstall base -y |
17 |
|
18 |
+echo "set PATH" |
19 |
+PATH="/sbin/e-smith/:$PATH" |
20 |
+ |
21 |
echo "cleaning rpm not necessary or possibly conflicting" |
22 |
yum remove postfix -y 1>/dev/null |
23 |
|
24 |
@@ -102,6 +109,5 @@ |
25 |
|
26 |
|
27 |
# reboot |
28 |
-echo "you just have to issue a signal-event reboot; or simply a reboot and enjoy your SME" |
29 |
- |
30 |
-# to do use full path for sme commands |
31 |
+echo "you just have to issue a '/sbin/e-smith/signal-event reboot'; or simply 'reboot' and enjoy your SME" |
32 |
+echo "But before that, are you sure you have added a working SSH key to ~/.ssh/authorized_keys ?" |