mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
[PM-294] Add Database to MSSQL Environment File (#2962)
This commit is contained in:
parent
0bdc4c3902
commit
b55d086c9e
@ -43,8 +43,8 @@ fi
|
||||
# Replace database name in backup-db.sql
|
||||
if [ ! -z "$DATABASE" ]
|
||||
then
|
||||
sed -i -e "/@DatabaseName /s/vault/$DATABASE/" backup-db.sql
|
||||
sed -i -e "/@DatabaseNameSafe /s/vault/${DATABASE// /-}/" backup-db.sql
|
||||
sed -i "/^SET @DatabaseName =/s/'[^']*'/'$DATABASE'/" backup-db.sql
|
||||
sed -i "/^SET @DatabaseNameSafe =/s/'[^']*'/'${DATABASE// /-}'/" backup-db.sql
|
||||
fi
|
||||
|
||||
# The rest...
|
||||
|
@ -104,6 +104,7 @@ public class EnvironmentFileBuilder
|
||||
_mssqlOverrideValues = new Dictionary<string, string>
|
||||
{
|
||||
["SA_PASSWORD"] = dbPassword,
|
||||
["DATABASE"] = _context.Install?.Database ?? "vault"
|
||||
};
|
||||
|
||||
_keyConnectorOverrideValues = new Dictionary<string, string>
|
||||
|
Loading…
Reference in New Issue
Block a user