Skip to content

Commit 8b7c159

Browse files
committed
密码修改提醒
1 parent 18b27c3 commit 8b7c159

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup-services.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ else
236236
# Check if variable exists in the file
237237
if grep -q "^$var=" "$TARGET_ENV"; then
238238
NEW_PASS=$(generate_password)
239-
set_env_val "$var" "$NEW_PASS" "Auto-generated random password"
239+
set_env_val "$var" "$NEW_PASS" "Auto-generated. DO NOT CHANGE after startup or services will break."
240240
echo "Updated $var with new random password."
241241
fi
242242
done
@@ -269,6 +269,12 @@ fi
269269
echo -e "${GREEN}Deployment setup complete!${NC}"
270270
echo -e "Configuration file: ${YELLOW}$TARGET_ENV${NC}"
271271

272+
echo -e "\n${RED}!!! IMPORTANT CONFIGURATION WARNING !!!${NC}"
273+
echo -e "${YELLOW}Passwords have been auto-generated and synchronized.${NC}"
274+
echo -e "${YELLOW}DO NOT change them manually in the .env file after this point.${NC}"
275+
echo -e "${YELLOW}Changing them will break connections between services and databases.${NC}"
276+
echo -e "${RED}!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!${NC}"
277+
272278
# --- SSL Certificate Checklist ---
273279
SSL_CERT_VAL=$(get_env_val "SSL_CERTIFICATE")
274280
# Only show checklist if SSL var is set AND the selected example implies HTTPS usage

0 commit comments

Comments
 (0)