1
0
mirror of synced 2025-12-28 08:33:25 +00:00

Update update.sh

This commit is contained in:
Valentin
2023-09-14 23:37:49 +02:00
committed by GitHub
parent 8700c67a66
commit a93e9574c8

View File

@@ -8,7 +8,7 @@ then
old_file=/opt/accessgate_agent/old_user.txt old_file=/opt/accessgate_agent/old_user.txt
isDifferent=false isDifferent=false
curl -o $tmp_file -X GET -H 'Content-Type: application/json' -d '{"secret": "'$secret'"}' $url/endpoint/update/$server/users curl -o $tmp_file -X GET -H 'Content-Type: application/json' -d '{"secret": "'$secret'"}' $url/endpoint/update/$server/users
[[ -f filename ]] || touch $old_file touch $old_file
cmp --silent $old_file $tmp_file || isDifferent=true cmp --silent $old_file $tmp_file || isDifferent=true
if [ isDifferent = "true" ] if [ isDifferent = "true" ]