mirror of
https://github.com/unraid/api.git
synced 2026-01-13 20:19:56 -06:00
fix: upc apikey path
This commit is contained in:
@@ -79,7 +79,7 @@ export class ApiManager extends EventEmitter {
|
||||
const upcApiKey = dotProp.get(file, 'upc.apikey')! as string;
|
||||
if (!upcApiKey) {
|
||||
const apiKey = `unupc_${crypto.randomBytes(58).toString('hex')}`;
|
||||
fs.writeFileSync('./config_modified.ini', ini.stringify({ remote: { apikey: apiKey } }, { section: 'upc' }));
|
||||
fs.writeFileSync(configPath, ini.stringify({ apikey: apiKey }, { section: 'upc' }));
|
||||
this.replace('upc', apiKey, {
|
||||
// @todo: fix UPC being root
|
||||
userId: '0'
|
||||
|
||||
Reference in New Issue
Block a user