From 9e3b559d91039e4a51a79dcc6418999816588c2e Mon Sep 17 00:00:00 2001 From: vijay Date: Mon, 5 May 2025 23:35:40 +0000 Subject: [PATCH] Update install_wordpress_vestacp --- install_wordpress_vestacp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install_wordpress_vestacp b/install_wordpress_vestacp index 6332437..b68e870 100644 --- a/install_wordpress_vestacp +++ b/install_wordpress_vestacp @@ -29,8 +29,10 @@ DB_PREFIX=$(echo $DOMAIN_NAME | cut -c1-3) # Truncate the username to ensure the total length does not exceed 16 characters MAX_USERNAME_LENGTH=16 TRUNCATED_USERNAME=$(echo "$USERNAME" | cut -c1-10) # Limit to 10 characters -DB_NAME="${TRUNCATED_USERNAME}_${DB_PREFIX}_db" # Construct database name -DB_USER="${TRUNCATED_USERNAME}_${DB_PREFIX}_usr" # Construct database user + +# Construct database name and user without the last two parts +DB_NAME="${TRUNCATED_USERNAME}_${DB_PREFIX}" # Construct database name +DB_USER="${TRUNCATED_USERNAME}_${DB_PREFIX}" # Construct database user # Ensure the database name and user do not exceed 16 characters if [ ${#DB_NAME} -gt $MAX_USERNAME_LENGTH ]; then