Skip to content

Commit d7b8474

Browse files
authored
[core]: harmonize app_name for creds (#9224)
1 parent 44fbd31 commit d7b8474

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

misc/tools.func

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3117,7 +3117,8 @@ function setup_mariadb_db() {
31173117

31183118
$STD mariadb -u root -e "FLUSH PRIVILEGES;"
31193119

3120-
local CREDS_FILE="${MARIADB_DB_CREDS_FILE:-${HOME}/${APPLICATION}.creds}"
3120+
local app_name="${APPLICATION,,}"
3121+
local CREDS_FILE="${MARIADB_DB_CREDS_FILE:-${HOME}/${app_name}.creds}"
31213122
{
31223123
echo "MariaDB Credentials"
31233124
echo "Database: $MARIADB_DB_NAME"
@@ -4035,7 +4036,8 @@ function setup_postgresql_db() {
40354036
fi
40364037

40374038
# Save credentials
4038-
local CREDS_FILE="${PG_DB_CREDS_FILE:-${HOME}/${APPLICATION}.creds}"
4039+
local app_name="${APPLICATION,,}"
4040+
local CREDS_FILE="${PG_DB_CREDS_FILE:-${HOME}/${app_name}.creds}"
40394041
{
40404042
echo "PostgreSQL Credentials"
40414043
echo "Database: $PG_DB_NAME"

0 commit comments

Comments
 (0)