From 8ce7376b8a311f1a0017a5a688a1c0652ab96441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Garc=C3=ADa?= <73230111+alegarsan11@users.noreply.github.com> Date: Tue, 28 May 2024 09:37:33 +0200 Subject: [PATCH] Update build.sh --- build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sh b/build.sh index 248840e..227d2ce 100755 --- a/build.sh +++ b/build.sh @@ -34,6 +34,14 @@ sudo chmod -R 775 /usr/share/nftables-frontend/static sudo chown -R www-data:www-data /usr/share/nftables-frontend/static FICHERO="/etc/apache2/sites-available/000-default.conf" +if [ -f "$FICHERO" ]; then + rm "$FICHERO" + echo "El fichero $FICHERO ha sido eliminado." +else + echo "El fichero $FICHERO no existe." +fi +FICHERO="/etc/apache2/sites-enabled/000-default.conf" + if [ -f "$FICHERO" ]; then rm "$FICHERO" echo "El fichero $FICHERO ha sido eliminado."