Skip to content

Commit

Permalink
Unify Harbor and Clair DB password on first boot (vmware#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
wy65701436 authored and zjs committed Jun 20, 2018
1 parent a443569 commit 6f80832
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions installer/build/scripts/harbor/configure_harbor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ configureHarborCfg ssl_cert $appliance_tls_cert
configureHarborCfg ssl_cert_key $appliance_tls_key
configureHarborCfg secretkey_path $data_dir

# Set MySQL and Clair DB passwords on first boot
configureHarborCfgOnce db_password "$(genPass)"
configureHarborCfgOnce clair_db_password "$(genPass)"
# Set Harbor DB and Clair DB passwords on first boot
random_pwd=$(genPass)
configureHarborCfgOnce db_password "$random_pwd"
configureHarborCfgOnce clair_db_password "$random_pwd"

setPortInYAML $harbor_compose_file "${REGISTRY_PORT}" "${NOTARY_PORT}"

Expand Down

0 comments on commit 6f80832

Please sign in to comment.