1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

added a warning to not run it under root

This commit is contained in:
Alex Kocharin 2013-12-17 20:25:17 +04:00
parent 8ea985ff6b
commit 225c2bb65f

@ -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