summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-31 03:14:38 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-31 03:14:38 +0900
commit2fd6ddf8eefd9db7d1f7b84890be65d6404f2016 (patch)
treec9c4c660d76382ae2703d460eb181adb08ee6914
parent:sparkles: (diff)
downloadsharkey-2fd6ddf8eefd9db7d1f7b84890be65d6404f2016.tar.gz
sharkey-2fd6ddf8eefd9db7d1f7b84890be65d6404f2016.tar.bz2
sharkey-2fd6ddf8eefd9db7d1f7b84890be65d6404f2016.zip
:sparkles:
-rw-r--r--src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index b9c628268b..47354eab0d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -166,6 +166,8 @@ async function init(): Promise<State> {
machineLogger.info(`CPU: ${os.cpus().length}core`);
machineLogger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
+ new DependencyChecker().checkAll();
+
let configLogger = new Logger('Config');
if (!fs.existsSync(`${__dirname}/../.config/config.yml`)) {
configLogger.error('Configuration not found');
@@ -175,7 +177,6 @@ async function init(): Promise<State> {
configLogger.info('Successfully loaded');
configLogger.info(`maintainer: ${config.maintainer}`);
- new DependencyChecker().checkAll();
if (process.platform === 'linux' && !isRoot() && config.port < 1024) {
Logger.error('You need root privileges to listen on port below 1024 on Linux');