mirror of https://framagit.org/kyodev/kyopages.git
getIp 1.17.0
This commit is contained in:
parent
7dfdf6cc93
commit
ed0717b3ad
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version=1.16.2
|
version=1.17.0
|
||||||
date="5/12/2017"
|
date="6/12/2017"
|
||||||
projet="simpledeb"
|
projet="simpledeb"
|
||||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||||
script="getIp"
|
script="getIp"
|
||||||
|
@ -499,7 +499,7 @@ fscript_remove(){ # 4/12/2017
|
||||||
}
|
}
|
||||||
|
|
||||||
# mise à jour script si dispo, v2, +update spécifique
|
# mise à jour script si dispo, v2, +update spécifique
|
||||||
fscript_update(){ # 4/12/2017
|
fscript_update(){ # 6/12/2017
|
||||||
local dirTemp="/tmp/$script-$RANDOM"
|
local dirTemp="/tmp/$script-$RANDOM"
|
||||||
|
|
||||||
[ $(type -t fscript_update_special) ] && fscript_update_special # test, si fonction spécifique, appel
|
[ $(type -t fscript_update_special) ] && fscript_update_special # test, si fonction spécifique, appel
|
||||||
|
@ -515,7 +515,7 @@ fscript_update(){ # 4/12/2017
|
||||||
mkdir -p "$dirTemp"
|
mkdir -p "$dirTemp"
|
||||||
wget -q --tries=2 --timeout=15 -O "$dirTemp/$script" "$urlScript"
|
wget -q --tries=2 --timeout=15 -O "$dirTemp/$script" "$urlScript"
|
||||||
if [ "$?" != "0" ]; then f__wget_test "$urlScript"; fi
|
if [ "$?" != "0" ]; then f__wget_test "$urlScript"; fi
|
||||||
if grep -q '#!/bin/bash' "$dirTemp/$script" ; then
|
if grep -q '#!/bin/bash' "$dirTemp/$script" && grep -q '^### END CONTROL' "$dirTemp/$script"; then
|
||||||
cp -d "$dirTemp/$script" "$scriptInstall"
|
cp -d "$dirTemp/$script" "$scriptInstall"
|
||||||
chmod 775 "$scriptInstall" # rwx rwx r-x, proprio fu_user
|
chmod 775 "$scriptInstall" # rwx rwx r-x, proprio fu_user
|
||||||
chown "$fu_user:" "$scriptInstall"
|
chown "$fu_user:" "$scriptInstall"
|
||||||
|
@ -654,6 +654,8 @@ done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
### END CONTROL (contrôle chargement)
|
||||||
|
|
||||||
wget -nv -O getIp https://frama.link/getip
|
wget -nv -O getIp https://frama.link/getip
|
||||||
chmod +x getIp && ./getIp
|
chmod +x getIp && ./getIp
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 1.17.0 6/12/2017
|
||||||
|
|
||||||
|
* révision: fscript_update, controle chargement début et fin
|
||||||
|
* révision: changement séquence start pour éviter erreur cron
|
||||||
|
|
||||||
## 1.16.2 5/12/2017
|
## 1.16.2 5/12/2017
|
||||||
|
|
||||||
* nouveau: option - ( ou -46 ), ipv4 & ipv6
|
* nouveau: option - ( ou -46 ), ipv4 & ipv6
|
||||||
|
|
Loading…
Reference in New Issue