magicmarkh-zz/conjur-poc

Source Command Errors - CentOS 7

Opened this issue · 0 comments

The source command on line 69 causes errors on CentOS 7, see below:
./setup.sh: line 69: syntax error near unexpected token (
./setup.sh: line 69: source <(grep = config.ini)'

You could fix using the following:
#Load ini variables
local master_name=$(cat $PWD/config.ini | awk '/master_name=/' | sed 's/master_name=//')
local company_name=$(cat $PWD/config.ini | awk '/company_name=/' | sed 's/company_name=//')
local admin_password=$(cat $PWD/config.ini | awk '/admin_password=/' | sed 's/admin_password=//')

If you use local you would need to add the lines in two places (before conjur install and before cli install) as they are in different functions I think.