Skip to content

Commit c8d9c1c

Browse files
authored
πŸ› The default change of ENV is Y when deploying in Infrastructure mode.
2 parents 95ac1a6 + d06c570 commit c8d9c1c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

β€Ždocker/deploy.shβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ select_deployment_mode() {
342342
mode_choice="$MODE_CHOICE"
343343
echo "πŸ‘‰ Using mode_choice from argument: $mode_choice"
344344
else
345-
read -p "πŸ‘‰ Enter your choice [1/2/3/4] (default: 1): " mode_choice
345+
read -p "πŸ‘‰ Enter your choice [1/2/3] (default: 1): " mode_choice
346346
fi
347347

348348
# Sanitize potential Windows CR in input

β€Ždocker/generate_env.shβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ prepare_env_file() {
1212
if [ -f "../.env" ]; then
1313
echo " ⚠️ .env already exists in root directory"
1414
echo ""
15-
read -p "πŸ‘‰ Do you want to overwrite it? [Y/N] (default: N): " overwrite
15+
read -p "πŸ‘‰ Do you want to overwrite it? [Y/N] (default: Y): " overwrite
16+
# If input is empty, use default "Y"
17+
overwrite=${overwrite:-Y}
1618
if [[ ! "$overwrite" =~ ^[Yy]$ ]]; then
1719
echo " Using existing .env file"
1820
return 0

0 commit comments

Comments
Β (0)