2021-11-07 17:03:29
This commit is contained in:
4
bonus.sh
4
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:58:07 by gbaconni ### lausanne.ch #
|
||||
# Updated: 2021/11/07 17:03:25 by gbaconni ### lausanne.ch #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@@ -46,7 +46,7 @@ ft_wordpress ()
|
||||
|
||||
ft_ufw ()
|
||||
{
|
||||
if test -f /etc/rc.local.orig
|
||||
if test -f /etc/rc.local.orig && ! grep -q 'port 443' /etc/rc.local
|
||||
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
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user