Some fixes

This commit is contained in:
Sefinek committed 2025-01-18 04:49:44 +01:00
1 parent f6774898b5
commit 1239a9f1b3
1 file changed
+2 -2
+2 -2
View File
@@ -160,7 +160,7 @@ if [ ! -d "UFW-AbuseIPDB-Reporter" ]; then
echo "📥 Cloning the UFW-AbuseIPDB-Reporter repository..." echo "📥 Cloning the UFW-AbuseIPDB-Reporter repository..."
sudo git clone https://github.com/sefinek/UFW-AbuseIPDB-Reporter.git --branch node.js || { echo "❌ Failed to clone the repository. Exiting..."; exit 1; } sudo git clone https://github.com/sefinek/UFW-AbuseIPDB-Reporter.git --branch node.js || { echo "❌ Failed to clone the repository. Exiting..."; exit 1; }
else else
echo "✨ The UFW-AbuseIPDB-Reporter repository already exists!" echo "✨ The UFW-AbuseIPDB-Reporter repository already exists"
fi fi
sudo chown "$USER":"$USER" /opt/UFW-AbuseIPDB-Reporter -R sudo chown "$USER":"$USER" /opt/UFW-AbuseIPDB-Reporter -R
@@ -175,7 +175,7 @@ npm install -silent
# Copy configuration file # Copy configuration file
if [ -e config.js ]; then if [ -e config.js ]; then
echo "✅ config.js already exists. Skipping copy..." echo "✅ config.js already exists"
else else
echo "📑 Copying default.config.js to config.js..." echo "📑 Copying default.config.js to config.js..."
cp default.config.js config.js cp default.config.js config.js