mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
update stable links of mongodb
This commit is contained in:
parent
1f8470972a
commit
794c7ca24a
@ -75,10 +75,10 @@ def main():
|
||||
os, comp, arch,
|
||||
str(args.working_dir.absolute()),
|
||||
filelist[1] ]
|
||||
print(shell_args)
|
||||
# ret = sp.run(shell_args)
|
||||
# if ret.returncode != 0:
|
||||
# failed.append((os, comp, arch))
|
||||
# print(shell_args)
|
||||
ret = sp.run(shell_args)
|
||||
if ret.returncode != 0:
|
||||
failed.append((os, comp, arch))
|
||||
if len(failed) > 0:
|
||||
print("Failed APT repos: ", failed)
|
||||
if args.delete:
|
||||
|
@ -54,7 +54,7 @@ if [[ -z ${DRY_RUN:-} ]]; then
|
||||
fi
|
||||
|
||||
for elver in ${RHEL_VERSIONS[@]}; do
|
||||
[[ -e "${YUM_PATH}/el$elver" ]] || (cd "${YUM_PATH}" && ln -fs "el$elver-${STABLE_VERSION}" el$elver)
|
||||
[[ -e "${YUM_PATH}/el$elver-${STABLE_VERSION}" ]] && (cd "${YUM_PATH}" && ln -fs "el$elver-${STABLE_VERSION}" el$elver)
|
||||
done
|
||||
|
||||
rm $cfg
|
||||
@ -69,6 +69,9 @@ for mgver in ${MONGO_VERSIONS[@]}; do
|
||||
"$apt_sync" "$BASE_URL/apt/ubuntu" "@{ubuntu-lts}/mongodb-org/$mgver" multiverse amd64,i386 "$UBUNTU_PATH"
|
||||
"$apt_sync" "$BASE_URL/apt/debian" "@{debian-current}/mongodb-org/$mgver" main amd64,i386 "$DEBIAN_PATH"
|
||||
done
|
||||
for dist in "$BASE_URL"/apt/*/dists/*/mongodb-org/; do
|
||||
[[ -e "${dist}/${STABLE_VERSION}" ]] && (cd "${dist}" && ln -fs "${STABLE_VERSION}" stable)
|
||||
done
|
||||
echo "APT finished"
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user