mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Replaced __dirname usage.
This commit is contained in:
parent
b5efbbbb2e
commit
73b45a9f5e
11 changed files with 25 additions and 28 deletions
|
|
@ -21,7 +21,7 @@ if (process.env.MAXMIND_LICENSE_KEY) {
|
|||
`?edition_id=${db}&license_key=${process.env.MAXMIND_LICENSE_KEY}&suffix=tar.gz`;
|
||||
}
|
||||
|
||||
const dest = path.resolve(__dirname, '../geo');
|
||||
const dest = path.resolve(process.cwd(), 'geo');
|
||||
|
||||
if (!fs.existsSync(dest)) {
|
||||
fs.mkdirSync(dest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue