[core]: harmonize app_name for creds (#9224)

This commit is contained in:
CanbiZ 2025-11-17 16:52:11 +01:00 committed by GitHub
parent 44fbd31eb7
commit d7b8474af1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3117,7 +3117,8 @@ function setup_mariadb_db() {
$STD mariadb -u root -e "FLUSH PRIVILEGES;"
local CREDS_FILE="${MARIADB_DB_CREDS_FILE:-${HOME}/${APPLICATION}.creds}"
local app_name="${APPLICATION,,}"
local CREDS_FILE="${MARIADB_DB_CREDS_FILE:-${HOME}/${app_name}.creds}"
{
echo "MariaDB Credentials"
echo "Database: $MARIADB_DB_NAME"
@ -4035,7 +4036,8 @@ function setup_postgresql_db() {
fi
# Save credentials
local CREDS_FILE="${PG_DB_CREDS_FILE:-${HOME}/${APPLICATION}.creds}"
local app_name="${APPLICATION,,}"
local CREDS_FILE="${PG_DB_CREDS_FILE:-${HOME}/${app_name}.creds}"
{
echo "PostgreSQL Credentials"
echo "Database: $PG_DB_NAME"