work around path limits

This commit is contained in:
Florian Dold 2021-01-15 19:19:38 +01:00
parent e273724b1c
commit 94431fc6d2
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -401,7 +401,10 @@ export interface BankConfig {
function setPaths(config: Configuration, home: string) {
config.setString("paths", "taler_home", home);
config.setString("paths", "taler_runtime_dir", "$TALER_HOME/taler-runtime/");
// We need to make sure that the path of taler_runtime_dir isn't too long,
// as it contains unix domain sockets (108 character limit).
const runDir = fs.mkdtempSync("/tmp/taler-test-");
config.setString("paths", "taler_runtime_dir", runDir);
config.setString(
"paths",
"taler_data_home",