feat: dukung SETTINGS_PATH (settings.json di direktori mount/persisten)
This commit is contained in:
1 parent
f27c02309e
commit
6f97430e41
6 files changed
+12
-5
No files matched your search
+1
-1
@@ -1318,7 +1318,7 @@ router.put('/api/servers/legacy', requireAdmin, express.json(), async (req, res)
|
||||
if (clearPassword) currentSettings.genieacs_password = '';
|
||||
else if (String(passwordInput || '').trim()) currentSettings.genieacs_password = String(passwordInput || '');
|
||||
|
||||
const settingsPath = path.join(__dirname, '../settings.json');
|
||||
const settingsPath = require('../config/paths').settingsPath;
|
||||
fs.writeFileSync(settingsPath, JSON.stringify(currentSettings, null, 2), 'utf8');
|
||||
|
||||
res.json({ success: true, message: 'Default ACS berhasil diperbarui.' });
|
||||
|
||||
Reference in new issue
Block a user