-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1 changed file
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
#! /bin/sh | ||
echo "running $0 $@" | ||
|
||
os=`cat /etc/redhat-release` | ||
|
||
# no need for caching installs on demo servers | ||
if [ -d /vagrant ]; then | ||
# no need for caching installs on demo servers | ||
cp -R /space/software/yum /var/cache/ | ||
if [[ $os == *"7."* ]]; then | ||
cp -R /space/software/yum-centos7 /var/cache/yum | ||
else | ||
cp -R /space/software/yum /var/cache/ | ||
fi | ||
|
||
sed -i '/keepcache/ s/0/1/' /etc/yum.conf | ||
fi | ||
fi | ||
|
||
if [[ $os == *"7."* ]]; then | ||
rpm --import https://fedoraproject.org/static/352C64E5.txt | ||
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm | ||
else | ||
rpm --import https://fedoraproject.org/static/0608B895.txt | ||
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | ||
fi | ||
|
||
yum -y update | ||
if [[ $os == *"7."* ]]; then | ||
yum groups mark install "Development Tools" | ||
yum groups mark convert "Development Tools" | ||
fi | ||
yum -y groupinstall "Development Tools" |