Fixes
This commit is contained in:
1 parent
700cb048fc
commit
2d2cde1ea7
4 files changed
+4
-12
No files matched your search
+3
-3
@@ -6,9 +6,9 @@ module.exports = {
|
|||||||
// Logging configuration
|
// Logging configuration
|
||||||
log_date_format: 'HH:mm:ss.SSS DD.MM.YYYY',
|
log_date_format: 'HH:mm:ss.SSS DD.MM.YYYY',
|
||||||
merge_logs: true,
|
merge_logs: true,
|
||||||
log_file: '/var/log/ufw-abuseipdb/combined.log',
|
log_file: '~/logs/other/ufw-abuseipdb/combined.log',
|
||||||
out_file: '/var/log/ufw-abuseipdb/out.log',
|
out_file: '~/logs/other/ufw-abuseipdb/out.log',
|
||||||
error_file: '/var/log/ufw-abuseipdb/error.log',
|
error_file: '~/logs/other/ufw-abuseipdb/error.log',
|
||||||
|
|
||||||
// Application restart policy settings
|
// Application restart policy settings
|
||||||
wait_ready: true,
|
wait_ready: true,
|
||||||
|
|||||||
@@ -193,14 +193,6 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Install pm2
|
||||||
echo "📦 Installing PM2..."
|
echo "📦 Installing PM2..."
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"pull": "git pull && pm2 restart ufw-abuseipdb && pm2 logs ufw-abuseipdb",
|
||||||
"sync": "git pull --recurse-submodules",
|
"sync": "git pull --recurse-submodules",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"up": "ncu -u && npm install && npm update && npm audit fix"
|
"up": "ncu -u && npm install && npm update && npm audit fix"
|
||||||
|
|||||||
Reference in new issue
Block a user