()
| 5 | import { getConfigBaseDir, getDefaultSettingsFilePath, getProjectPath, getSettingsFilePath } from './paths' |
| 6 | |
| 7 | export const ensureNotRoot = (): void => { |
| 8 | if (typeof process.geteuid === 'function' && process.geteuid() === 0) { |
| 9 | throw new Error('Nostream should not be run as root.') |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | export const ensureConfigBootstrap = (): void => { |
| 14 | const configDir = getConfigBaseDir() |