Update
This commit is contained in:
1 parent
a85987f924
commit
bc73e635b7
2 files changed
+6
-4
No files matched your search
@@ -65,8 +65,9 @@ git clone --recurse-submodules https://github.com/sefinek/UFW-AbuseIPDB-Reporter
|
|||||||
cd UFW-AbuseIPDB-Reporter
|
cd UFW-AbuseIPDB-Reporter
|
||||||
npm install
|
npm install
|
||||||
cp config.default.js config.js
|
cp config.default.js config.js
|
||||||
sudo chmod 644 /var/log/ufw.log
|
sudo chown syslog:"$USER" "$ufw_log_path"
|
||||||
npm install -g pm2
|
sudo chmod 640 "$ufw_log_path"
|
||||||
|
npm install -g pm2@latest
|
||||||
sudo mkdir -p /var/log/ufw-abuseipdb
|
sudo mkdir -p /var/log/ufw-abuseipdb
|
||||||
sudo chown -R "$USER":"$USER" /var/log/ufw-abuseipdb
|
sudo chown -R "$USER":"$USER" /var/log/ufw-abuseipdb
|
||||||
pm2 start
|
pm2 start
|
||||||
|
|||||||
+3
-2
@@ -244,12 +244,13 @@ sudo chown -R "$USER":"$USER" /var/log/ufw-abuseipdb
|
|||||||
|
|
||||||
# Change permissions for UFW log file
|
# Change permissions for UFW log file
|
||||||
echo "🔒 Changing permissions for $ufw_log_path..."
|
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
|
# Install PM2
|
||||||
echo "📦 Installing PM2..."
|
echo "📦 Installing PM2..."
|
||||||
sudo npm install pm2 -g --silent
|
sudo npm install pm2@latest -g --silent
|
||||||
|
|
||||||
|
|
||||||
# Configure PM2
|
# Configure PM2
|
||||||
|
|||||||
Reference in new issue
Block a user