Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Add script to reset a single users session, see #198
Browse files Browse the repository at this point in the history
Signed-off-by: Soenke Huster <me@eknoes.de>
  • Loading branch information
eknoes committed Sep 6, 2021
1 parent a888a73 commit 2ba1414
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions resources/signal-reset-session.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/bash
signald() {
echo "$1" | nc -U /var/run/signald/signald.sock | jq 'select(.type != "version")'
}

if [ -z "$1" ]
then
echo "Please provide the users number as argument in international format"
exit 1;
fi

signald "{\"account\": \"+4915792453845\", \"address\": { \"number\": \"$1\" }, \"type\": \"reset_session\", \"version\": \"v1\" }"

0 comments on commit 2ba1414

Please sign in to comment.