File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pants-plugins/uses_services Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,8 @@ async def mongo_is_running(
169169 install_instructions_el = dedent (
170170 """\
171171 # Add key and repo for the latest stable MongoDB (4.0)
172- rpm --import https://www.mongodb.org/static/pgp/server-4.0.asc
173- sh -c "cat <<EOT > /etc/yum.repos.d/mongodb-org-4.repo
172+ sudo rpm --import https://www.mongodb.org/static/pgp/server-4.0.asc
173+ sudo sh -c "cat <<EOT > /etc/yum.repos.d/mongodb-org-4.repo
174174 [mongodb-org-4]
175175 name=MongoDB Repository
176176 baseurl=https://repo.mongodb.org/yum/redhat/${OSRELEASE_VERSION}/mongodb-org/4.0/x86_64/
@@ -179,15 +179,15 @@ async def mongo_is_running(
179179 gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
180180 EOT"
181181 # Install mongo
182- yum install mongodb-org
182+ sudo yum -y install mongodb-org
183183 # Don't forget to start mongo.
184184 """
185185 ),
186186 service_start_cmd_deb = "systemctl start mongod" ,
187187 not_installed_clause_deb = "this is one way to install it:" ,
188188 install_instructions_deb = dedent (
189189 """\
190- apt-get install mongodb mongodb-server
190+ sudo apt-get install -y mongodb-org
191191 # Don't forget to start mongo.
192192 """
193193 ),
You can’t perform that action at this time.
0 commit comments