Skip to content
Permalink
Browse files
Don’t prompt for confirmation with apt-get
`apt-get install` will try to prompt the user for confirmation when installing a package unless the `-y` parameter is provided. This causes the install to abort is there is no attached terminal.
  • Loading branch information
kemitix committed Feb 10, 2020
1 parent 6260121 commit 4689f4391d1eb9a2a54c55e17780005e80fba464
Showing 2 changed files with 2 additions and 2 deletions.
@@ -106,7 +106,7 @@ brooklyn.catalog:
install.command: |
# install python if not present
which python || \
{ sudo apt-get update && sudo apt-get install python ; } || \
{ sudo apt-get update && sudo apt-get install -y python ; } || \
{ sudo yum update && sudo yum install python ; } || \
{ echo WARNING: cannot install python && exit 1 ; }

@@ -72,7 +72,7 @@ brooklyn.catalog:
install.command: |
# install python if not present
which python || \
{ sudo apt-get update && sudo apt-get install python ; } || \
{ sudo apt-get update && sudo apt-get install -y python ; } || \
{ sudo yum update && sudo yum install python ; } || \
{ echo WARNING: cannot install python && exit 1 ; }

0 comments on commit 4689f43

Please sign in to comment.