mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-03 16:56:18 +00:00
Update x-ui.sh
This commit is contained in:
parent
e109de38cd
commit
45e0c5221d
1 changed files with 2 additions and 3 deletions
5
x-ui.sh
5
x-ui.sh
|
@ -516,8 +516,7 @@ update_geo() {
|
|||
LOGI "making bin folder: ${binFolder}..."
|
||||
mkdir -p ${binFolder}
|
||||
fi
|
||||
|
||||
systemctl stop x-ui
|
||||
|
||||
cd ${binFolder}
|
||||
rm -f geoip.dat geosite.dat geoip_IR.dat geosite_IR.dat geoip-lite.dat geosite-lite.dat security.dat security-ip.dat iran.dat
|
||||
wget -O geoip.dat -N https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/geoip.dat
|
||||
|
@ -528,7 +527,7 @@ update_geo() {
|
|||
wget -O security.dat -N https://cdn.jsdelivr.net/gh/chocolate4u/Iran-v2ray-rules@release/security.dat
|
||||
wget -O iran.dat -N https://github.com/bootmortis/iran-hosted-domains/releases/latest/download/iran.dat
|
||||
|
||||
systemctl start x-ui
|
||||
systemctl restart x-ui
|
||||
echo -e "${green}Geosite.dat + Geoip.dat + security.dat + security-ip.dat + geoip-lite.dat + geosite-lite.dat + iran.dat have been updated successfully in bin folder '${binfolder}'!${plain}"
|
||||
before_show_menu
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue