node: introduce variable "new_hoodfile"

This information can be evaluated by the vpn-skripts.

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Robert Langhammer 2022-03-04 23:02:34 +01:00
parent 87d923c1ef
commit 893a2a5ec1
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,8 @@ if [ -s "$hoodfiletmp" ]; then
if [ "$sumnew" != "$sumold" ] ; then
echo "New file detected, we reconfigure the Node";
export new_hoodfile="yes"
json_select hood
json_get_var hood name
@ -174,6 +176,8 @@ if [ -s "$hoodfiletmp" ]; then
/etc/init.d/alfred restart
else
echo "We have no new file. We do nothing. We try it again in 5 minutes...";
export new_hoodfile="no"
fi
# and now we get to vpn-select script and load VPNs directly from /tmp/keyxchangev2data