doomedraven / Tools

Combination of different utilities, have fun!
MIT License
202 stars 96 forks source link

Update cape2.sh script - create mongodb list file #118

Closed enceladus3 closed 2 years ago

enceladus3 commented 2 years ago

Please consider updating line 608 in cape2.sh:

Now: echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/${MONGO_VERSION} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list

Update: echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/${MONGO_VERSION} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-${MONGO_VERSION}.list

Based on official MongoDB docs: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/#create-a-list-file-for-mongodb echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

Otherwise, I experienced errors while running the script on Ubuntu 20.04

doomedraven commented 2 years ago

Hello what errors? im using that as it is there the problem with the file per version is that on upgrades you need to remove old files to stop fetching useless data

doomedraven commented 2 years ago

Please always provide logs in future, without them issue kinda is not valid. as i can't see the problem.

doomedraven commented 2 years ago

error like your is fixed now, var assignation doesn't allow space on bash. is why i need logs. ask for something without see it i can't just go and do it

here is your problem fix https://github.com/doomedraven/Tools/commit/470cb1c0a5acdc99a75158cf1bc701cbb30ef298