devstack: Be tolerant of existing /etc/apt/sources.list.d dir
Otherwise installation fails on environments where this already exists with: mkdir: cannot create directory ‘/etc/apt/sources.list.d’: File exists Change-Id: I10ad400879ae047c6e6248237e980174e0ccb8a9 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
2420eb0c96
commit
20d7c78fb6
@ -170,7 +170,7 @@ function configure_mongodb {
|
||||
# NOTE: To fix the mongodb's issue in ubuntu 22.04/24.04 LTS
|
||||
ubuntu_version=$(source /etc/os-release ; echo $VERSION_ID)
|
||||
if [[ $ubuntu_version == '24.04' ]]; then
|
||||
sudo mkdir /etc/apt/sources.list.d
|
||||
sudo mkdir -p /etc/apt/sources.list.d
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-8.0.asc | sudo apt-key add -
|
||||
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
|
||||
sudo apt update
|
||||
|
Loading…
x
Reference in New Issue
Block a user