0.4.0-beta.1

This commit is contained in:
Sefinek committed 2025-04-28 08:55:36 +02:00
1 parent 078a4f1ed1
commit 7ca5321017
4 files changed
+13 -5

No files matched your search

+9 -1
View File
@@ -177,9 +177,17 @@ const processLogLine = async (line, test = false) => {
});
});
if (AUTO_UPDATE_ENABLED && AUTO_UPDATE_SCHEDULE && SERVER_ID !== 'development') await require('./scripts/services/updates.js')();
// Auto updates
if (AUTO_UPDATE_ENABLED && AUTO_UPDATE_SCHEDULE && SERVER_ID !== 'development') {
await require('./scripts/services/updates.js')();
} else {
await require('./scripts/services/version.js')();
}
// Summaries
if (DISCORD_WEBHOOKS_ENABLED && DISCORD_WEBHOOKS_URL) await require('./scripts/services/summaries.js')();
// Ready
if (SERVER_ID !== 'development') await sendWebhook(`[${repoName}](${repoURL}) has been successfully started on the device \`${SERVER_ID}\`.`, 0x59D267);
log(`Ready! Now monitoring: ${UFW_LOG_FILE}`, 1);
process.send && process.send('ready');