Fix mongodb upgrade accidentally.

This commit is contained in:
BoHung Chiu 2023-04-06 13:26:11 +08:00
parent f9eb12bd3a
commit e2ee286ade
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ function fix_downgrade_mongod(){
mongod_code="$(echo $?)"
}
function install_mongodb(){
if [[ "$2" == "1" ]]; then #reinstall
sudo rm -f /etc/apt/sources.list.d/mongodb-org-*
fi
case $1 in
3.2)
mongod_ver="3.2.22"