SERVER_ID !== 'development'
This commit is contained in:
1 parent
153cd326ea
commit
59d6689417
2 files changed
+5
-2
No files matched your search
@@ -140,10 +140,13 @@ const processLogLine = async line => {
|
||||
});
|
||||
|
||||
// Auto updates
|
||||
if (AUTO_UPDATE_ENABLED && AUTO_UPDATE_SCHEDULE) await require('./scripts/services/updates.js')();
|
||||
if (AUTO_UPDATE_ENABLED && AUTO_UPDATE_SCHEDULE && SERVER_ID !== 'development') await require('./scripts/services/updates.js')();
|
||||
if (DISCORD_WEBHOOKS_ENABLED && DISCORD_WEBHOOKS_URL) await require('./scripts/services/summaries.js')();
|
||||
|
||||
// Final
|
||||
if (SERVER_ID !== 'development') {
|
||||
await discordWebhooks(0, `[UFW-AbuseIPDB-Reporter](https://github.com/sefinek/UFW-AbuseIPDB-Reporter) has been successfully launched on the device \`${SERVER_ID}\`.`);
|
||||
}
|
||||
|
||||
log(0, `Ready! Now monitoring: ${UFW_LOG_FILE}`);
|
||||
log(0, '=====================================================================');
|
||||
|
||||
+1
-1
Submodule scripts updated: de024c3f82...81d562fea9.
Reference in new issue
Block a user