-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqt-install
executable file
·74 lines (57 loc) · 1.43 KB
/
qt-install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/sh
# Copyright (C) 2013 - Eric Shubert <[email protected]>
#
# Install QMailToaster packages and configure host
########################################################################
# Change Log
# 12/27/13 shubes - created
########################################################################
########################################################################
# install os packages we want that aren't part of the minimal install
#
a1_install_non_minimal_os(){
yum -y install \
man \
ntp \
# setup ntp daemon
chkconfig ntpd on
service ntpd start
}
########################################################################
# install the QMT packages
#
a4_install_qmt_packages(){
echo "$me - installing the QMailToaster packages ..."
echo "$me - please be patient, especially with clamav and qmail ..."
yum -y install \
simscan \
dovecot \
vqadmin \
qmailadmin \
isoqlog \
qmailmrtg \
send-emails \
squirrelmail \
}
########################################################################
# main processing begins here
#
me=${0##*/}
myver=v1.0
. qt-whatami -s
if [ $? -ne 0 ]; then
qt-whatami
echo "$me - qt-whatami failed"
exit 1
fi
a1_install_non_minimal_os
# this is in progress
# qt-install-dns-resolver
qt-setup-firewall
qt-install-repoforge
a4_install_qmt_packages
qt-mysql-secure-vpopmail
# setup web server
chkconfig httpd on
service httpd start
exit 0