Add sudo chmod 644 /var/log/ufw.log

This commit is contained in:
Sefinek 2024-10-30 17:00:04 +01:00
parent f0199badf4
commit 0f06233d74

View file

@ -157,6 +157,11 @@ if ! sudo sed -i "s|^ENCODED_API_KEY_FILE=.*|ENCODED_API_KEY_FILE=\"$token_file\
fi fi
echo echo
echo "INFO: Setting permissions (chmod 644) for the file /var/log/ufw.log"
sudo chmod 644 /var/log/ufw.log
echo
# Prompt to add reporter.sh as a service # Prompt to add reporter.sh as a service
read -rp "> Do you want to add reporter.sh as a service? [Yes/no]: " add_service read -rp "> Do you want to add reporter.sh as a service? [Yes/no]: " add_service
@ -225,6 +230,7 @@ else
exit 1 exit 1
fi fi
# Prompt to add the service to autostart # Prompt to add the service to autostart
echo echo
read -rp "> Do you want to add abuseipdb-ufw.service to autostart? [Yes/no]: " add_autostart read -rp "> Do you want to add abuseipdb-ufw.service to autostart? [Yes/no]: " add_autostart