mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
added a warning to not run it under root
This commit is contained in:
parent
8ea985ff6b
commit
225c2bb65f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue