| 57 | } |
| 58 | |
| 59 | function createNewIndexAcl (userDirectory) { |
| 60 | const currentIndexAcl = path.join(userDirectory, 'index.html.acl') |
| 61 | const backupIndexAcl = path.join(userDirectory, 'index.backup.html.acl') |
| 62 | const currentIndexSource = fs.readFileSync(currentIndexAcl, 'utf-8') |
| 63 | const backupIndexSource = currentIndexSource.replace(/index.html/g, 'index.backup.html') |
| 64 | fs.writeFileSync(backupIndexAcl, backupIndexSource, 'utf-8') |
| 65 | } |
| 66 | |
| 67 | async function deleteUsers (usernames, accountManager, config, host) { |
| 68 | const oidcManager = fromServerConfig({ ...config, host }) |