aboutsummaryrefslogtreecommitdiffstats
path: root/build/templates/compass_core.tmpl
blob: afecba5854739df28386c6bd2c223aadbf3d047b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -x
yum install tar -y

#download packages
#set packages = $getVar('default_packages', [])
#for pkg in $packages
yum -y install $pkg
#end for
#set packages = $getVar('packages', [])
#for pkg in $packages
yum -y install $pkg
#end for

#make repo

mkdir -p /centos6-package

find /var/cache/yum/ -name "*.rpm" | xargs -i cp {} /centos6-package

find /centos6-package  -size 0 -name "*.rpm" | xargs rm -f

tar -zcvf /centos6-package.tar.gz /centos6-package