From cb50d99f907fe14213b0a1256fd04f9acc3bbe23 Mon Sep 17 00:00:00 2001 From: HackWeasel Date: Fri, 12 Dec 2025 19:25:01 -0500 Subject: [PATCH] Adjusting Installation Scripts --- installers/install-gt2-dgx.sh | 7 +++++++ installers/install-gt2-mac.sh | 7 +++++++ installers/install-gt2-ubuntu.sh | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/installers/install-gt2-dgx.sh b/installers/install-gt2-dgx.sh index 581d7f4..4fd7a14 100755 --- a/installers/install-gt2-dgx.sh +++ b/installers/install-gt2-dgx.sh @@ -794,6 +794,13 @@ generate_security_tokens() { echo "TENANT_POSTGRES_PASSWORD=${tenant_pw}" >> "$env_file" print_success "Generated TENANT_POSTGRES_PASSWORD" fi + + # Sync TENANT_USER_PASSWORD with TENANT_POSTGRES_PASSWORD (required for docker-compose) + if ! grep -q "^TENANT_USER_PASSWORD=" "$env_file" 2>/dev/null; then + local tenant_pass=$(grep "^TENANT_POSTGRES_PASSWORD=" "$env_file" | cut -d'=' -f2) + echo "TENANT_USER_PASSWORD=${tenant_pass}" >> "$env_file" + print_success "Generated TENANT_USER_PASSWORD (synced with TENANT_POSTGRES_PASSWORD)" + fi fi # Set ownership if sudo user is available diff --git a/installers/install-gt2-mac.sh b/installers/install-gt2-mac.sh index b959638..e33e3a5 100755 --- a/installers/install-gt2-mac.sh +++ b/installers/install-gt2-mac.sh @@ -607,6 +607,13 @@ generate_security_tokens() { echo "TENANT_POSTGRES_PASSWORD=${tenant_pw}" >> "$env_file" print_success "Generated TENANT_POSTGRES_PASSWORD" fi + + # Sync TENANT_USER_PASSWORD with TENANT_POSTGRES_PASSWORD (required for docker-compose) + if ! grep -q "^TENANT_USER_PASSWORD=" "$env_file" 2>/dev/null; then + local tenant_pass=$(grep "^TENANT_POSTGRES_PASSWORD=" "$env_file" | cut -d'=' -f2) + echo "TENANT_USER_PASSWORD=${tenant_pass}" >> "$env_file" + print_success "Generated TENANT_USER_PASSWORD (synced with TENANT_POSTGRES_PASSWORD)" + fi fi } diff --git a/installers/install-gt2-ubuntu.sh b/installers/install-gt2-ubuntu.sh index fc44bcb..90523dd 100755 --- a/installers/install-gt2-ubuntu.sh +++ b/installers/install-gt2-ubuntu.sh @@ -756,6 +756,13 @@ generate_security_tokens() { echo "TENANT_POSTGRES_PASSWORD=${tenant_pw}" >> "$env_file" print_success "Generated TENANT_POSTGRES_PASSWORD" fi + + # Sync TENANT_USER_PASSWORD with TENANT_POSTGRES_PASSWORD (required for docker-compose) + if ! grep -q "^TENANT_USER_PASSWORD=" "$env_file" 2>/dev/null; then + local tenant_pass=$(grep "^TENANT_POSTGRES_PASSWORD=" "$env_file" | cut -d'=' -f2) + echo "TENANT_USER_PASSWORD=${tenant_pass}" >> "$env_file" + print_success "Generated TENANT_USER_PASSWORD (synced with TENANT_POSTGRES_PASSWORD)" + fi fi # Set ownership if sudo user is available