Skip to content

Commit

Permalink
Fixed command for installing python via apt-get and yum by using sudo
Browse files Browse the repository at this point in the history
Cherry-picked Jongyoul Lee’s commit (a0341a4, PR #105), but conflicts 
due to server-cli/src/main/resources/catalog.bom not existing. Therefore
fixing conflict manually and committing.
  • Loading branch information
aledsage committed Apr 7, 2016
1 parent 718aea7 commit d520fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server-cli/src/main/resources/brooklyn/default.catalog.bom
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ brooklyn.catalog:
install.command: |
# install python if not present
which python || \
{ apt-get update && apt-get install python ; } || \
{ yum update && yum install python ; } || \
{ sudo apt-get update && sudo apt-get install python ; } || \
{ sudo yum update && sudo yum install python ; } || \
{ echo WARNING: cannot install python && exit 1 ; }

customize.command: |
Expand Down

0 comments on commit d520fde

Please sign in to comment.