chore(vars): not download vars if present
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
95c8af473f
commit
fd34f08490
1 changed files with 7 additions and 6 deletions
|
|
@ -75,26 +75,27 @@ randomPass() {
|
|||
|
||||
## Don't override existing variables file.
|
||||
[[ -f vars.yaml ]] && {
|
||||
warn "Existing Variables file. Not overriding."
|
||||
warn "Existing Variables file. Not downloading."
|
||||
}|| {
|
||||
|
||||
info " Downloading vars file"
|
||||
curl -L -O vars.yaml https://raw.githubusercontent.com/rjshrjndrn/openreplay/${version}/scripts/helm/helm/vars.yaml
|
||||
|
||||
}
|
||||
|
||||
[[ -z $DOMAIN_NAME ]] && {
|
||||
fatal "DOMAIN_NAME variable is empty. Rerun the script"
|
||||
info "curl -sL get.openreplay.com | sudo DOMAIN_NAME=openerplay.mycomp.org bash - "
|
||||
exit 101
|
||||
}
|
||||
|
||||
info " Downloading vars file"
|
||||
curl -L -O vars.yaml https://raw.githubusercontent.com/rjshrjndrn/openreplay/${version}/scripts/helm/helm/vars.yaml
|
||||
|
||||
info "Creating dynamic passwords"
|
||||
sed -i "s/postgresqlPassword: \"changeMePassword\"/postgresqlPassword: \"$(randomPass)\"/g" vars.yaml
|
||||
sed -i "s/accessKey: \"changeMeMinioAccessKey\"/accessKey: \"$(randomPass)\"/g" vars.yaml
|
||||
sed -i "s/secretKey: \"changeMeMinioPassword\"/secretKey: \"$(randomPass)\"/g" vars.yaml
|
||||
sed -i "s/jwt_secret: \"SetARandomStringHere\"/jwt_secret: \"$(randomPass)\"/g" vars.yaml
|
||||
sed -i "s/domainName: .*/domainName: \"${DOMAIN_NAME}\"/g" vars.yaml
|
||||
sed -i "s/domainName: \"\"/domainName: \"${DOMAIN_NAME}\"/g" vars.yaml
|
||||
|
||||
}
|
||||
|
||||
## Installing OpenReplay
|
||||
info "Installing databases"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue