aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/clef/docs/qubes/qubes.Clefsign
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-05-02 18:31:05 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-02 18:31:05 +0800
commit5d4d79ae2672b295a539cf3ce0163b2cb10eb2b2 (patch)
treed56b5e8aa13a14d27aa3ce52b8f59cff304927ea /cmd/clef/docs/qubes/qubes.Clefsign
parent6a01363d1ddb15fa79817c425de472066e72a094 (diff)
downloaddexon-5d4d79ae2672b295a539cf3ce0163b2cb10eb2b2.tar.gz
dexon-5d4d79ae2672b295a539cf3ce0163b2cb10eb2b2.tar.zst
dexon-5d4d79ae2672b295a539cf3ce0163b2cb10eb2b2.zip
cmd/clef: documentation about setup (#16568)
clef: documentation about setup
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