Update update.sh

scripts
Valentin 2023-09-14 23:37:49 +02:00 committed by GitHub
parent 8700c67a66
commit a93e9574c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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" ]