mirror of
https://github.com/certd/certd.git
synced 2026-04-28 16:17:25 +08:00
refactor: home环境变量
This commit is contained in:
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*",
|
"packages/*"
|
||||||
"other/node-acme-client"
|
|
||||||
],
|
],
|
||||||
"version": "0.1.6"
|
"version": "0.1.6"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ const logger = util.logger
|
|||||||
export class FileStore extends Store {
|
export class FileStore extends Store {
|
||||||
constructor (opts) {
|
constructor (opts) {
|
||||||
super()
|
super()
|
||||||
this.rootDir = util.path.getUserBasePath()
|
|
||||||
if (opts.rootDir != null) {
|
if (opts.rootDir != null) {
|
||||||
this.rootDir = opts.rootDir
|
this.rootDir = opts.rootDir
|
||||||
|
} else {
|
||||||
|
this.rootDir = util.path.getUserBasePath()
|
||||||
}
|
}
|
||||||
if (opts.test) {
|
if (opts.test) {
|
||||||
this.rootDir = path.join(this.rootDir, '/test/')
|
this.rootDir = path.join(this.rootDir, '/test/')
|
||||||
|
|||||||
Reference in New Issue
Block a user