-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-initialrpms
executable file
·34 lines (28 loc) · 1.07 KB
/
setup-initialrpms
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
#!/bin/sh
echo "========================="
echo "=== setup-initialrpms ==="
echo "========================="
# Download or update koji rpms
rpm -q koji koji-hub koji-hub-plugins koji-web koji-builder koji-utils > /dev/null 2>&1
if [ $? -ne 0 ]; then
yum -y install koji koji-hub koji-hub-plugins koji-web koji-builder koji-utils
else
yum -y update koji koji-hub koji-hub-plugins koji-web koji-builder koji-utils
fi
# Make sure we have enough of postgresql to operate with
rpm -q postgres postgresql-libs postgresql-python postgresql-docs \
postgresql-devel postgresql-server > /dev/null 2>&1
if [ $? -ne 0 ]; then
yum -y install postgresql postgresql-libs postgresql-python postgresql-docs \
postgresql-devel postgresql-server
else
yum -y update postgresql postgresql-libs postgresql-python postgresql-docs \
postgresql-devel postgresql-server
fi
# Make sure we've all the pieces for web service
rpm -q mod_python mod_ssl > /dev/null 2>&1
if [ $? -ne 0 ]; then
yum -y install mod_python mod_ssl
else
yum -y update mod_python mod_ssl
fi