mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
mongdob and gitlab-ce scripts update
This commit is contained in:
parent
ec7d039a66
commit
8d2bf7698b
@ -17,9 +17,12 @@ DEBIAN_PATH="${BASE_PATH}/debian/"
|
|||||||
|
|
||||||
mkdir -p $UBUNTU_PATH $DEBIAN_PATH $YUM_PATH
|
mkdir -p $UBUNTU_PATH $DEBIAN_PATH $YUM_PATH
|
||||||
|
|
||||||
|
cache_dir="/tmp/yum-gitlab-ce-cache/"
|
||||||
cfg="/tmp/gitlab-ce-yum.conf"
|
cfg="/tmp/gitlab-ce-yum.conf"
|
||||||
cat <<EOF > ${cfg}
|
cat <<EOF > ${cfg}
|
||||||
|
[main]
|
||||||
|
keepcache=0
|
||||||
|
|
||||||
[el6]
|
[el6]
|
||||||
name=el6
|
name=el6
|
||||||
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/6/x86_64
|
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/el/6/x86_64
|
||||||
@ -39,9 +42,9 @@ gpgkey=https://packages.gitlab.com/gpg.key
|
|||||||
sslverify=0
|
sslverify=0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
reposync -c $cfg -d -p ${YUM_PATH}
|
reposync -c $cfg -d -p ${YUM_PATH} -e $cache_dir
|
||||||
createrepo --update -o ${YUM_PATH}/el6 ${YUM_PATH}/el6
|
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el6 ${YUM_PATH}/el6
|
||||||
createrepo --update -o ${YUM_PATH}/el7 ${YUM_PATH}/el7
|
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el7 ${YUM_PATH}/el7
|
||||||
rm $cfg
|
rm $cfg
|
||||||
|
|
||||||
base_url="https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu"
|
base_url="https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu"
|
||||||
|
@ -51,8 +51,8 @@ done
|
|||||||
|
|
||||||
reposync -c $cfg -d -p ${YUM_PATH} -e $cache_dir
|
reposync -c $cfg -d -p ${YUM_PATH} -e $cache_dir
|
||||||
for mgver in ${MONGO_VERSIONS[@]}; do
|
for mgver in ${MONGO_VERSIONS[@]}; do
|
||||||
createrepo -v --update -o ${YUM_PATH}/el6-$mgver/ -c $cache_dir ${YUM_PATH}/el6-$mgver/
|
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el6-$mgver/ ${YUM_PATH}/el6-$mgver/
|
||||||
createrepo -v --update -o ${YUM_PATH}/el7-$mgver/ -c $cache_dir ${YUM_PATH}/el7-$mgver/
|
createrepo --update -v -c $cache_dir -o ${YUM_PATH}/el7-$mgver/ ${YUM_PATH}/el7-$mgver/
|
||||||
done
|
done
|
||||||
|
|
||||||
[ -e ${YUM_PATH}/el6 ] || (cd ${YUM_PATH}; ln -s el6-${STABLE_VERSION} el6)
|
[ -e ${YUM_PATH}/el6 ] || (cd ${YUM_PATH}; ln -s el6-${STABLE_VERSION} el6)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user