cmd/clef: documentation about setup (#16568)

clef: documentation about setup
This commit is contained in:
Martin Holst Swende
2018-05-02 12:31:05 +02:00
committed by Péter Szilágyi
parent 6a01363d1d
commit 5d4d79ae26
9 changed files with 251 additions and 1 deletions

View File

@ -0,0 +1,16 @@
#!/bin/bash
SIGNER_BIN="/home/user/tools/clef/clef"
SIGNER_CMD="/home/user/tools/gtksigner/gtkui.py -s $SIGNER_BIN"
# Start clef if not already started
if [ ! -S /home/user/.clef/clef.ipc ]; then
$SIGNER_CMD &
sleep 1
fi
# Should be started by now
if [ -S /home/user/.clef/clef.ipc ]; then
# Post incoming request to HTTP channel
curl -H "Content-Type: application/json" -X POST -d @- http://localhost:8550 2>/dev/null
fi