2021-11-07 16:42:42
This commit is contained in:
3
bonus.sh
3
bonus.sh
@@ -6,7 +6,7 @@
|
||||
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2021/11/07 14:23:18 by gbaconni #+# #+# #
|
||||
# Updated: 2021/11/07 16:40:24 by gbaconni ### lausanne.ch #
|
||||
# Updated: 2021/11/07 16:42:40 by gbaconni ### lausanne.ch #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@@ -42,7 +42,6 @@ ft_ufw ()
|
||||
then
|
||||
sed -i -r 's|(/usr/sbin/ufw allow proto tcp from any to any port)(.+)|\1\2\n\1 80\n\1 443|' /etc/rc.local
|
||||
else
|
||||
ufw enable
|
||||
ufw allow proto tcp from any to any port 80
|
||||
ufw allow proto tcp from any to any port 443
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user