From c6c113496b6a0029948f35bdb6e52b17296e2fa5 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 18 Nov 2024 20:22:57 +0100 Subject: [PATCH] fixed --- installation/dhcp.sh | 5 ++++- installation/webserver.sh | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/installation/dhcp.sh b/installation/dhcp.sh index 19952cd..a8339a9 100755 --- a/installation/dhcp.sh +++ b/installation/dhcp.sh @@ -13,6 +13,9 @@ subnet 192.168.1.0 netmask 255.255.255.0 { \ option domain-name-servers 8.8.8.8, 8.8.4.4; \ }" +echo -e 'INTERFACES="enp0s3"' | sudo tee /etc/default/isc-dhcp-server >/dev/null + echo -e "$config" | sudo tee /etc/dhcp/dhcpd.conf >/dev/null -systemctl enable isc-dhcp-server --now +systemctl start isc-dhcp-server +systemctl enable isc-dhcp-server diff --git a/installation/webserver.sh b/installation/webserver.sh index da8a263..952c596 100755 --- a/installation/webserver.sh +++ b/installation/webserver.sh @@ -2,4 +2,5 @@ sudo apt update sudo apt install -y nginx -sudo systemctl enable nginx --now +sudo systemctl start nginx +sudo systemctl enable nginx