From 7ca532101775e6bd2bbd65d8eb2621b07cffc529 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Mon, 28 Apr 2025 08:55:36 +0200 Subject: [PATCH] 0.4.0-beta.1 --- index.js | 10 +++++++++- package-lock.json | 4 ++-- package.json | 2 +- scripts | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 765be28..f5861e8 100644 --- a/index.js +++ b/index.js @@ -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'); diff --git a/package-lock.json b/package-lock.json index 5702e10..63c0270 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ufw-abuseipdb-reporter", - "version": "0.4.0-beta.0", + "version": "0.4.0-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ufw-abuseipdb-reporter", - "version": "0.4.0-beta.0", + "version": "0.4.0-beta.1", "license": "GPL-3.0", "dependencies": { "axios": "^1.9.0", diff --git a/package.json b/package.json index eaa1b96..8c0bc3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ufw-abuseipdb-reporter", - "version": "0.4.0-beta.0", + "version": "0.4.0-beta.1", "description": "A tool (with a simple installer) that monitors UFW firewall logs in real time and reports IP addresses to the AbuseIPDB database.", "homepage": "https://github.com/sefinek/UFW-AbuseIPDB-Reporter#readme", "bugs": { diff --git a/scripts b/scripts index 9cf56de..6fc0a1b 160000 --- a/scripts +++ b/scripts @@ -1 +1 @@ -Subproject commit 9cf56de229ab4c4779827ccb9cd0b2b55f76b6d5 +Subproject commit 6fc0a1b39b93141453604bdc92c650441ede565b