From bc73e635b7d3bd4daa795a7666facfdb79c9b5e5 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sat, 20 Dec 2025 17:46:16 +0100 Subject: [PATCH] Update --- README.md | 5 +++-- install.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 05a9534..2b72a69 100644 --- a/README.md +++ b/README.md @@ -65,8 +65,9 @@ git clone --recurse-submodules https://github.com/sefinek/UFW-AbuseIPDB-Reporter cd UFW-AbuseIPDB-Reporter npm install cp config.default.js config.js -sudo chmod 644 /var/log/ufw.log -npm install -g pm2 +sudo chown syslog:"$USER" "$ufw_log_path" +sudo chmod 640 "$ufw_log_path" +npm install -g pm2@latest sudo mkdir -p /var/log/ufw-abuseipdb sudo chown -R "$USER":"$USER" /var/log/ufw-abuseipdb pm2 start diff --git a/install.sh b/install.sh index e737084..0a869dc 100644 --- a/install.sh +++ b/install.sh @@ -244,12 +244,13 @@ sudo chown -R "$USER":"$USER" /var/log/ufw-abuseipdb # Change permissions for UFW log file echo "🔒 Changing permissions for $ufw_log_path..." -sudo chmod 644 "$ufw_log_path" +sudo chown syslog:"$USER" "$ufw_log_path" +sudo chmod 640 "$ufw_log_path" # Install PM2 echo "📦 Installing PM2..." -sudo npm install pm2 -g --silent +sudo npm install pm2@latest -g --silent # Configure PM2