mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Force lowercase for filenames and hostnames for filename generation
This commit is contained in:
@@ -80,8 +80,8 @@ bootstrap_variables() {
|
||||
mongo_uri_hostname=$(echo ${mongo_uri_scratch} | cut -d/ -f1 | cut -d: -f1 )
|
||||
mongo_uri_database=$(echo ${mongo_uri_scratch} | cut -d/ -f2 | cut -d? -f1 )
|
||||
mongo_uri_options=$(echo ${mongo_uri_scratch} | cut -d/ -f2 | cut -d? -f2 )
|
||||
DB_NAME=${DB_NAME:-"${mongo_uri_database}"}
|
||||
DB_HOST=${DB_HOST:-"${mongo_uri_hostname}"}
|
||||
DB_NAME=${DB_NAME:-"${mongo_uri_database,,}"}
|
||||
DB_HOST=${DB_HOST:-"${mongo_uri_hostname,,}"}
|
||||
fi
|
||||
;;
|
||||
"mysql" )
|
||||
|
||||
Reference in New Issue
Block a user