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