From 07590c61219ffa8bc7fd7bee9d71c07132e437aa Mon Sep 17 00:00:00 2001 From: Sefinek Date: Sun, 13 Apr 2025 18:33:29 +0200 Subject: [PATCH] =?UTF-8?q?Add=20`=F0=9F=94=A7=20Preparing=20UFW...`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install.sh b/install.sh index 00899dc..4878129 100644 --- a/install.sh +++ b/install.sh @@ -223,6 +223,21 @@ sudo chown -R "$USER":"$USER" /var/cache/sefinek echo "🔒 Changing permissions for $ufw_log_path..." sudo chmod 644 "$ufw_log_path" +# Prepare UFW +echo "🔧 Preparing UFW..." +if ! sudo ufw status | grep -q "Status: active"; then + echo "❌ UFW is not active. Please enable it first." + exit 1 +fi + +if ! sudo ufw status verbose | grep -q "Logging: on ("; then + echo "🔧 Enabling UFW logging (low)..." + sudo ufw logging low +else + echo "✅ UFW logging is already enabled" +fi + + # Install PM2 echo "📦 Installing PM2..." sudo npm install pm2 -g --silent