mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-03-31 06:24:00 -04:00
Switch external config provider path
This commit is contained in:
@@ -9,8 +9,8 @@ const fs = require('fs');
|
||||
* @param option
|
||||
*/
|
||||
module.exports = (option) => {
|
||||
if (fs.existsSync('/app/options.json')) {
|
||||
return JSON.parse(fs.readFileSync('/app/options.json', 'utf-8'))[option];
|
||||
if (fs.existsSync('/data/options.json')) {
|
||||
return JSON.parse(fs.readFileSync('/data/options.json', 'utf-8'))[option];
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user