aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/clef/docs/qubes/qubes.Clefsign
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/clef/docs/qubes/qubes.Clefsign')
-rw-r--r--cmd/clef/docs/qubes/qubes.Clefsign16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/clef/docs/qubes/qubes.Clefsign b/cmd/clef/docs/qubes/qubes.Clefsign
new file mode 100644
index 000000000..9b5af7b4f
--- /dev/null
+++ b/cmd/clef/docs/qubes/qubes.Clefsign
@@ -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