0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

Merge pull request #114 from juanpicado/master

rename clean up
This commit is contained in:
jmwilkinson 2017-01-24 09:20:44 -08:00 committed by GitHub
commit e8c16cfb4b
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
/*eslint no-sync:0*/
if (process.getuid && process.getuid() === 0) {
global.console.error("Sinopia doesn't need superuser privileges. Don't run it under root.")
global.console.error("Verdaccio doesn't need superuser privileges. Don't run it under root.")
}
process.title = 'verdaccio'

View file

@ -15,19 +15,19 @@ function HTPasswd(config, stuff) {
self._logger = stuff.logger
// sinopia main config object
self._sinopia_config = stuff.config
self._verdaccio_config = stuff.config
// all this "sinopia_config" stuff is for b/w compatibility only
self._maxusers = self._config.max_users
if (!self._maxusers) self._maxusers = self._sinopia_config.max_users
if (!self._maxusers) self._maxusers = self._verdaccio_config.max_users
// set maxusers to Infinity if not specified
if (!self._maxusers) self._maxusers = Infinity
self._last_time = null
var file = self._config.file
if (!file) file = self._sinopia_config.users_file
if (!file) file = self._verdaccio_config.users_file
if (!file) throw new Error('should specify "file" in config')
self._path = Path.resolve(Path.dirname(self._sinopia_config.self_path), file)
self._path = Path.resolve(Path.dirname(self._verdaccio_config.self_path), file)
return self
}