diff options
author | Profpatsch <mail@profpatsch.de> | 2016-09-16 17:38:28 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-09-16 22:43:13 +0200 |
commit | c6b04ca554c9f22732e65a2441442b9b1bcc3f37 (patch) | |
tree | cecab5f5b20130a4e6d2dd4a9eaff34cd634c638 /machines/profpatsch | |
parent | 43913c8148157fd1157355a1994b1e39d4b82597 (diff) |
machines/katara/xmpp-client: fix fifo
Now it really does use a fifo and not a file
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/xmpp-client.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/machines/profpatsch/xmpp-client.nix b/machines/profpatsch/xmpp-client.nix index a5dfdb79..2310e85d 100644 --- a/machines/profpatsch/xmpp-client.nix +++ b/machines/profpatsch/xmpp-client.nix @@ -5,10 +5,10 @@ writeScriptBin "xmpp-client" '' #!/usr/bin/env bash PASS=$(${lib.getBin pass}/bin/pass "${passwordentry}" | head -n1) - # pipe cofnig with password in fifo - TMP=$(mktemp) + # pipe config with password in fifo + TMP="$(mktemp -d)/fifo" mkfifo "$TMP" - sed "s/@PASS@/$PASS/" ${home}/.config/xmpp-client/config > "$TMP" + sed "s/@PASS@/$PASS/" ${home}/.config/xmpp-client/config > "$TMP" & # execute the client with logging enabled |