From 225c2bb65f38daa2d28b42fc12e0b7227e13bb9d Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Tue, 17 Dec 2013 20:25:17 +0400 Subject: [PATCH] added a warning to not run it under root --- lib/cli.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cli.js b/lib/cli.js index 268657445..cb36a0e6e 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -1,5 +1,9 @@ #!/usr/bin/env node +if (process.getuid() === 0) { + console.error("Sinopia doesn't need superuser privileges. Don't run it under root.") +} + var logger = require('./logger') logger.setup() // default setup