add stretch and bionic

Signed-off-by: 王邈 <shankerwangmiao@gmail.com>
This commit is contained in:
王邈 2018-05-02 01:20:44 +08:00
parent ce11f88f2f
commit c3f2e74700
7 changed files with 18 additions and 18 deletions

View File

@ -14,8 +14,8 @@ YUM_PATH="${BASE_PATH}/centos"
UBUNTU_PATH="${BASE_PATH}/ubuntu"
DEBIAN_PATH="${BASE_PATH}/debian"
UBUNTU_VERSIONS=("trusty" "xenial")
DEBIAN_VERSIONS=("wheezy" "jessie")
UBUNTU_VERSIONS=("trusty" "xenial" "bionic")
DEBIAN_VERSIONS=("wheezy" "jessie" "stretch")
EL_VERSIONS=("6" "7")
# =================== APT repos ===============================
@ -50,7 +50,7 @@ keepcache=0
EOF
for elver in ${EL_VERSIONS[@]}; do
cat << EOF >> $cfg
cat << EOF >> $cfg
[$elver]
name=Elang for el-${elver}
baseurl=${BASE_URL}/rpm/centos/$elver/x86_64

View File

@ -13,7 +13,7 @@ BASE_PATH="${TUNASYNC_WORKING_DIR}"
YUM_PATH="${BASE_PATH}/yum"
UBUNTU_VERSIONS=("trusty" "wily" "xenial")
UBUNTU_VERSIONS=("trusty" "xenial" "bionic")
DEBIAN_VERSIONS=("wheezy" "jessie" "stretch")
UBUNTU_PATH="${BASE_PATH}/ubuntu/"
DEBIAN_PATH="${BASE_PATH}/debian/"

View File

@ -14,7 +14,7 @@ BASE_URL=${TUNASYNC_UPSTREAM_URL:-"https://packagecloud.io/grafana/stable"}
YUM_PATH="${BASE_PATH}/yum"
APT_PATH="${BASE_PATH}/apt"
APT_VERSIONS=("wheezy" "jessie")
APT_VERSIONS=("wheezy" "jessie" "stretch")
EL_VERSIONS=("6" "7")
mkdir -p ${YUM_PATH} ${APT_PATH}
@ -44,7 +44,7 @@ keepcache=0
EOF
for elver in ${EL_VERSIONS[@]}; do
cat << EOF >> $cfg
cat << EOF >> $cfg
[el${elver}]
name=el${elver}
baseurl=${BASE_URL}/el/$elver/x86_64/

View File

@ -15,8 +15,8 @@ YUM_PATH="${BASE_PATH}/yum"
UBUNTU_PATH="${BASE_PATH}/ubuntu"
DEBIAN_PATH="${BASE_PATH}/debian"
UBUNTU_VERSIONS=("trusty" "xenial")
DEBIAN_VERSIONS=("wheezy" "jessie")
UBUNTU_VERSIONS=("trusty" "xenial" "bionic")
DEBIAN_VERSIONS=("wheezy" "jessie" "stretch")
EL_VERSIONS=("6" "7")
mkdir -p ${YUM_PATH} ${UBUNTU_PATH} ${DEBIAN_PATH}
@ -55,7 +55,7 @@ keepcache=0
EOF
for elver in ${EL_VERSIONS[@]}; do
cat << EOF >> $cfg
cat << EOF >> $cfg
[el${elver}-x86_64]
name=el${elver}
baseurl=${BASE_URL}/rhel/$elver/x86_64/stable/

View File

@ -24,8 +24,8 @@ APT_PATH="${BASE_PATH}/apt"
UBUNTU_PATH="${APT_PATH}/ubuntu"
DEBIAN_PATH="${APT_PATH}/debian"
UBUNTU_VERSIONS=("trusty" "precise" "xenial")
DEBIAN_VERSIONS=("wheezy" "jessie")
UBUNTU_VERSIONS=("trusty" "precise" "xenial" "bionic")
DEBIAN_VERSIONS=("wheezy" "jessie" "stretch")
mkdir -p ${YUM_PATH} ${UBUNTU_PATH} ${DEBIAN_PATH}
@ -36,7 +36,7 @@ if [[ ! -z ${DRY_RUN:-} ]]; then
export APT_DRY_RUN=1
fi
MYSQL_APT_REPOS=("mysql-5.6" "mysql-5.7" "mysql-tools" "connector-python-2.1")
base_url="${BASE_URL}/apt/ubuntu"
for version in ${UBUNTU_VERSIONS[@]}; do
for repo in ${MYSQL_APT_REPOS[@]}; do
@ -69,7 +69,7 @@ keepcache=0
EOF
for elver in "6" "7"; do
cat << EOF >> $cfg
cat << EOF >> $cfg
[mysql-connectors-community-el${elver}]
name=MySQL Connectors Community
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/$elver/x86_64/

View File

@ -14,7 +14,7 @@ BASE_URL=${TUNASYNC_UPSTREAM_URL:-"https://repo.percona.com"}
YUM_PATH="${BASE_PATH}/yum"
APT_PATH="${BASE_PATH}/apt"
APT_VERSIONS=("wheezy" "jessie" "trusty" "xenial")
APT_VERSIONS=("wheezy" "jessie" "trusty" "xenial" "stretch" "bionic")
EL_VERSIONS=("6" "7")
mkdir -p ${YUM_PATH} ${APT_PATH}
@ -43,7 +43,7 @@ keepcache=0
EOF
for elver in ${EL_VERSIONS[@]}; do
cat << EOF >> $cfg
cat << EOF >> $cfg
[el${elver}]
name=el${elver}
baseurl=${BASE_URL}/centos/$elver/os/x86_64/

View File

@ -15,7 +15,7 @@ BASE_PATH="${TUNASYNC_WORKING_DIR}"
RPM_PATH="${BASE_PATH}/rpm"
APT_PATH="${BASE_PATH}/apt"
APT_VERSIONS=("xenial" "trusty" "precise" "stretch" "jessie" "wheezy" "squeeze")
APT_VERSIONS=("xenial" "trusty" "precise" "stretch" "jessie" "wheezy" "squeeze" "bionic")
EL_VERSIONS=("5" "6" "7")
mkdir -p ${RPM_PATH} ${APT_PATH}
@ -79,7 +79,7 @@ while read line; do
dest_filename="${LATEST_PATH}/${filename}"
pkg_url="${BASE_URL}/${LATEST_VERSION}/${filename}"
declare downloaded=false
if [[ -f ${dest_filename} ]]; then
@ -100,7 +100,7 @@ while read line; do
downloaded=true
fi
done
case $filename in
*Win.exe)
ln -sf ${dest_filename} ${BASE_PATH}/virtualbox-Win-latest.exe