mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-11 04:36:20 +00:00
parent
d842baa9b3
commit
a9e85e2bb7
1 changed files with 0 additions and 19 deletions
19
install.sh
19
install.sh
|
@ -198,24 +198,6 @@ config_after_install() {
|
||||||
/usr/local/x-ui/x-ui migrate
|
/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 <<EOF > /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() {
|
install_x-ui() {
|
||||||
cd /usr/local/
|
cd /usr/local/
|
||||||
|
|
||||||
|
@ -300,5 +282,4 @@ install_x-ui() {
|
||||||
|
|
||||||
echo -e "${green}Running...${plain}"
|
echo -e "${green}Running...${plain}"
|
||||||
install_base
|
install_base
|
||||||
update_dns
|
|
||||||
install_x-ui $1
|
install_x-ui $1
|
||||||
|
|
Loading…
Reference in a new issue