ping remove
This commit is contained in:
parent
5381f50258
commit
8e21d06877
28
wire_g
28
wire_g
@ -325,23 +325,21 @@ if [[ ! -d ${WG_WDIR} || ! -e ${WG_WDIR}about.txt ]]
|
|||||||
fi
|
fi
|
||||||
#Search on Updates
|
#Search on Updates
|
||||||
if AUTOUPDATE=$(grep 'TRUE TRUE\|FALSE TRUE' ${WG_WDIR}about.txt)
|
if AUTOUPDATE=$(grep 'TRUE TRUE\|FALSE TRUE' ${WG_WDIR}about.txt)
|
||||||
then
|
then
|
||||||
if ping -c 1 git.lunix.dedyn.io
|
if [[ ! -e /tmp/CHANGELOG ]]
|
||||||
then
|
then
|
||||||
if [[ ! -e /tmp/CHANGELOG ]]
|
wget https://git.lunix.dedyn.io/punix/Wire-G/raw/branch/main/wg_nmcli/CHANGELOG -P /tmp
|
||||||
then
|
|
||||||
wget https://git.lunix.dedyn.io/punix/Wire-G/raw/branch/main/wg_nmcli/CHANGELOG -P /tmp
|
|
||||||
|
|
||||||
UPDATE=$(diff -q /home/"$USER"/.local/share/wg_nmcli/CHANGELOG /tmp/CHANGELOG)
|
UPDATE=$(diff -q /home/"$USER"/.local/share/wg_nmcli/CHANGELOG /tmp/CHANGELOG)
|
||||||
|
|
||||||
if [[ -n "$UPDATE" ]]
|
if [[ -n "$UPDATE" ]]
|
||||||
then
|
then
|
||||||
yad --form --fixed \
|
yad --form --fixed \
|
||||||
--borders=8 --buttons-layout=center --text-align=center \
|
--borders=8 --buttons-layout=center --text-align=center \
|
||||||
--button="OK" --undecorated \
|
--button="OK" --undecorated \
|
||||||
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
|
||||||
--separator=" " --skip-taskbar \
|
--separator=" " --skip-taskbar \
|
||||||
--text=$"<span>Update for Wireg-G is available.</span> \n
|
--text=$"<span>Update for Wireg-G is available.</span> \n
|
||||||
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n"
|
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user