mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 21:08:52 -07:00
✨
This commit is contained in:
parent
ab2e614ffb
commit
79e38fb9ea
1 changed files with 2 additions and 1 deletions
|
@ -166,6 +166,8 @@ async function init(): Promise<State> {
|
||||||
machineLogger.info(`CPU: ${os.cpus().length}core`);
|
machineLogger.info(`CPU: ${os.cpus().length}core`);
|
||||||
machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
|
machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
|
||||||
|
|
||||||
|
new DependencyChecker().checkAll();
|
||||||
|
|
||||||
let configLogger = new Logger('Config');
|
let configLogger = new Logger('Config');
|
||||||
if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) {
|
if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) {
|
||||||
configLogger.error('Configuration not found');
|
configLogger.error('Configuration not found');
|
||||||
|
@ -175,7 +177,6 @@ async function init(): Promise<State> {
|
||||||
configLogger.info('Successfully loaded');
|
configLogger.info('Successfully loaded');
|
||||||
configLogger.info(`maintainer: ${config.maintainer}`);
|
configLogger.info(`maintainer: ${config.maintainer}`);
|
||||||
|
|
||||||
new DependencyChecker().checkAll();
|
|
||||||
|
|
||||||
if (process.platform === 'linux' && !isRoot() && config.port < 1024) {
|
if (process.platform === 'linux' && !isRoot() && config.port < 1024) {
|
||||||
Logger.error('You need root privileges to listen on port below 1024 on Linux');
|
Logger.error('You need root privileges to listen on port below 1024 on Linux');
|
||||||
|
|
Loading…
Reference in a new issue