qubes.Clefsign 432 B

12345678910111213141516
  1. #!/bin/bash
  2. SIGNER_BIN="/home/user/tools/clef/clef"
  3. SIGNER_CMD="/home/user/tools/gtksigner/gtkui.py -s $SIGNER_BIN"
  4. # Start clef if not already started
  5. if [ ! -S /home/user/.clef/clef.ipc ]; then
  6. $SIGNER_CMD &
  7. sleep 1
  8. fi
  9. # Should be started by now
  10. if [ -S /home/user/.clef/clef.ipc ]; then
  11. # Post incoming request to HTTP channel
  12. curl -H "Content-Type: application/json" -X POST -d @- http://localhost:8550 2>/dev/null
  13. fi