From d6c19ea07a65b162d926a44cb3fccbe9cc03bd1f Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 13 Apr 2025 16:31:48 +0200 Subject: [PATCH] Update --- ecosystem.config.js | 6 +++--- install.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 1663420..d29f7f6 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -6,9 +6,9 @@ module.exports = { // Logging configuration log_date_format: 'HH:mm:ss.SSS DD.MM.YYYY', merge_logs: true, - log_file: '~/logs/other/ufw-abuseipdb/combined.log', - out_file: '~/logs/other/ufw-abuseipdb/out.log', - error_file: '~/logs/other/ufw-abuseipdb/error.log', + log_file: '/var/log/ufw-abuseipdb/combined.log', + out_file: '/var/log/ufw-abuseipdb/out.log', + error_file: '/var/log/ufw-abuseipdb/error.log', // Application restart policy settings wait_ready: true, diff --git a/install.sh b/install.sh index 258d585..5173e10 100644 --- a/install.sh +++ b/install.sh @@ -193,6 +193,14 @@ else exit 1 fi +# Create logs directory +echo "📂 Creating /var/log/ufw-abuseipdb directory..." +sudo mkdir -p /var/log/ufw-abuseipdb +sudo chown "$USER":"$USER" /var/log/ufw-abuseipdb -R + +# Change permissions for UFW log file +echo "🔒 Changing permissions for $ufw_log_path..." +sudo chmod 644 "$ufw_log_path" # Install pm2 echo "📦 Installing PM2..."