From a0341a4c5d9cb2111d875caa8f1d7a1af9a058e4 Mon Sep 17 00:00:00 2001 From: Jongyoul Lee Date: Tue, 5 Apr 2016 12:20:41 +0900 Subject: [PATCH] Fixed command for installing python via apt-get and yum by using sudo --- server-cli/src/main/resources/brooklyn/default.catalog.bom | 4 ++-- server-cli/src/main/resources/catalog.bom | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server-cli/src/main/resources/brooklyn/default.catalog.bom b/server-cli/src/main/resources/brooklyn/default.catalog.bom index c5fecebd02..f5bc2a5a14 100644 --- a/server-cli/src/main/resources/brooklyn/default.catalog.bom +++ b/server-cli/src/main/resources/brooklyn/default.catalog.bom @@ -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: | diff --git a/server-cli/src/main/resources/catalog.bom b/server-cli/src/main/resources/catalog.bom index c5fecebd02..f5bc2a5a14 100644 --- a/server-cli/src/main/resources/catalog.bom +++ b/server-cli/src/main/resources/catalog.bom @@ -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: |