From a9e85e2bb7ee5a0130d9eb63174d25e5e8a58068 Mon Sep 17 00:00:00 2001 From: zoheir kabuli Date: Thu, 7 Nov 2024 12:23:34 +0330 Subject: [PATCH] Revert "updating dns while installing" This reverts commit d842baa9b3466125109186232276a7db1fee408b. --- install.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/install.sh b/install.sh index 0fc5bd56..c6c52000 100644 --- a/install.sh +++ b/install.sh @@ -198,24 +198,6 @@ config_after_install() { /usr/local/x-ui/x-ui migrate } -update_dns() { - # Remove the /etc/resolv.conf file - rm -f /etc/resolv.conf - - # Create a new /etc/resolv.conf file with the specified data - cat < /etc/resolv.conf -nameserver 1.1.1.1 -nameserver 1.0.0.1 -nameserver 2606:4700:4700::1111 -nameserver 2606:4700:4700::1001 -EOF - - # Make /etc/resolv.conf immutable - chattr +i /etc/resolv.conf - - echo "DNS configuration updated and locked successfully." -} - install_x-ui() { cd /usr/local/ @@ -300,5 +282,4 @@ install_x-ui() { echo -e "${green}Running...${plain}" install_base -update_dns install_x-ui $1