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:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user