dpkgs -s instead of dpkg -l
This commit is contained in:
@@ -4,7 +4,7 @@ echo
|
||||
echo " => Firewall"
|
||||
echo
|
||||
|
||||
dpkg -l ufw > /dev/null 2>&1
|
||||
dpkg -s ufw > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
apt-get install ufw -y
|
||||
ufw enable
|
||||
|
||||
Reference in New Issue
Block a user