parent
cb3433e93c
commit
911b60b792
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Share a text file to shrlok.
|
||||
cat <(printf '{"type":"txt"}\0') "$1" \
|
||||
| socat - UNIX-CONNECT:/run/shrlok/shr.sock \
|
||||
| sed 's|/var/www/files|https://files.dece.space|' \
|
||||
; echo
|
@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
|
Loading…
Reference in new issue