This is an automated email from the ASF dual-hosted git repository.

tbouron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git


The following commit(s) were added to refs/heads/master by this push:
     new f3776b9  Don’t prompt for confirmation with apt-get
     new b227b46  Merge pull request #1085 from kemitix/apt-get-no-prompt
f3776b9 is described below

commit f3776b97cc551bc98e76347bb5029ee77bd4b8ad
Author: Paul Campbell <[email protected]>
AuthorDate: Mon Feb 10 13:44:37 2020 +0000

    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.
---
 camp/camp-brooklyn/src/test/yaml/python-webserver.bom | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/camp/camp-brooklyn/src/test/yaml/python-webserver.bom 
b/camp/camp-brooklyn/src/test/yaml/python-webserver.bom
index 5fb5261..1c8c080 100644
--- a/camp/camp-brooklyn/src/test/yaml/python-webserver.bom
+++ b/camp/camp-brooklyn/src/test/yaml/python-webserver.bom
@@ -33,7 +33,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 ; }
 

Reply via email to