Corrected how to reach the API via token
This commit is contained in:
parent
96ebf27566
commit
944d72af5d
@ -1,5 +1,5 @@
|
|||||||
cd /home/sigonasr2/GiteaMailNotifications
|
cd /home/sigonasr2/GiteaMailNotifications
|
||||||
CURRENT=$(curl -s -D - -o /dev/null 'http://sig.projectdivar.com/api/v1/admin/users' -H 'accept: application/json' -H 'authorization: Basic $(cat .APIKEY)' | grep "X-Total-Count:")
|
CURRENT=$(curl -s -D - -o /dev/null 'http://sig.projectdivar.com/api/v1/admin/users?token='$(cat .APIKEY) -H 'accept: application/json' | grep "X-Total-Count:")
|
||||||
PREVIOUS=$(cat registeredusers.data)
|
PREVIOUS=$(cat registeredusers.data)
|
||||||
if [ "$CURRENT" != "$PREVIOUS" ]; then
|
if [ "$CURRENT" != "$PREVIOUS" ]; then
|
||||||
./notifyregistration.sh
|
./notifyregistration.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user