summaryrefslogtreecommitdiff
path: root/stream
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-11-27 22:44:22 -0500
committerAndrew Cady <d@cryptonomic.net>2022-11-27 22:44:22 -0500
commitb12fe3d00cbc69f054a4a7ec0cd018c209414fd6 (patch)
treefb620b5d200ec19ebeb431d9ebf9836b653b3639 /stream
parentf34bb3c0aa9ed17859be6b03c23d0b3428f9621c (diff)
selfstream solution
Diffstat (limited to 'stream')
-rwxr-xr-xstream12
1 files changed, 12 insertions, 0 deletions
diff --git a/stream b/stream
new file mode 100755
index 0000000..40d57af
--- /dev/null
+++ b/stream
@@ -0,0 +1,12 @@
1#!/bin/sh
2set -e
3srvdir=$(cryptonomic srvdir)
4hostname=$(cryptonomic hostname)
5[ -d "$srvdir" ]
6[ "$hostname" ]
7dashname=dash
8dashdir=$srvdir/public_html/$dashname
9sudo mkdir -p "$dashdir"
10sudo chown "$USER:$GROUP" "$dashdir"
11printf '%s\n' "https://$hostname/$dashname"
12./ffmpeg.sh "$dashdir"