Browse Source

Update adguard-install.sh

Code refactoring
tteckster 2 năm trước cách đây
mục cha
commit
4e6c68f164
1 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 6
      install/adguard-install.sh

+ 1 - 6
install/adguard-install.sh

@@ -20,12 +20,7 @@ $STD apt-get install -y mc
 msg_ok "Installed Dependencies"
 msg_ok "Installed Dependencies"
 
 
 msg_info "Installing AdGuard Home"
 msg_info "Installing AdGuard Home"
-systemctl stop systemd-resolved
-echo "DNSStubListener=no" >>/etc/systemd/resolved.conf
-ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
-wget -qL https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh
-$STD bash install.sh
-rm install.sh
+$STD bash <(curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh)
 msg_ok "Installed AdGuard Home"
 msg_ok "Installed AdGuard Home"
 
 
 motd_ssh
 motd_ssh