mirror of https://github.com/itsmrval/accessGate
Update update.sh
parent
8700c67a66
commit
a93e9574c8
|
|
@ -8,7 +8,7 @@ then
|
|||
old_file=/opt/accessgate_agent/old_user.txt
|
||||
isDifferent=false
|
||||
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
|
||||
|
||||
if [ isDifferent = "true" ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue