mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Added prestart script.
This commit is contained in:
parent
de3bf23e4c
commit
777dfeac0e
5 changed files with 28 additions and 13 deletions
10
scripts/postbuild.js
Normal file
10
scripts/postbuild.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
require('dotenv').config();
|
||||
const { sendTelemetry } = require('./telemetry');
|
||||
|
||||
async function run() {
|
||||
if (!process.env.DISABLE_TELEMETRY) {
|
||||
await sendTelemetry();
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
10
scripts/prestart.js
Normal file
10
scripts/prestart.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
require('dotenv').config();
|
||||
const { sendTelemetry } = require('./telemetry');
|
||||
|
||||
async function run() {
|
||||
if (!process.env.DISABLE_TELEMETRY) {
|
||||
await sendTelemetry();
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
require('dotenv').config();
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
|
|
@ -53,10 +52,6 @@ async function sendTelemetry() {
|
|||
}
|
||||
}
|
||||
|
||||
async function run() {
|
||||
if (!process.env.DISABLE_TELEMETRY) {
|
||||
await sendTelemetry();
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
module.exports = {
|
||||
sendTelemetry,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue