travelynx.conf: Actually call die() if DB_HOST is unset

This commit is contained in:
Daniel Friesel 2019-05-05 11:22:19 +02:00
parent 78aeb7d411
commit a1a0f33cab

View file

@ -4,7 +4,7 @@
realtime => $ENV{TRAVELYNX_IRISRT_CACHE} // '/var/cache/travelynx/iris-rt',
},
db => {
host => $ENV{TRAVELYNX_DB_HOST} // 'die("Please set TRAVELYNX_DB_HOST")',
host => $ENV{TRAVELYNX_DB_HOST} // die("Please set TRAVELYNX_DB_HOST"),
database => $ENV{TRAVELYNX_DB_NAME} // 'travelynx',
user => $ENV{TRAVELYNX_DB_USERNAME} // 'travelynx',
password => $ENV{TRAVELYNX_DB_PASSWORD} // die("Please set TRAVELYNX_DB_PASSWORD"),