diff options
author | Andrew Cady <d@cryptonomic.net> | 2022-11-27 23:36:03 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2022-11-27 23:36:03 -0500 |
commit | ed5b7a38f85e8e9c41797763f6ebc6423d23173d (patch) | |
tree | eab0004c5b77382923f2df84c8610f7b233298a1 | |
parent | a6e27250654746ced5dfc659ca7f49a383d95ac9 (diff) |
more
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rwxr-xr-x | stream | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2098683 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1 @@ | |||
install-stamp | |||
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0bcd84c --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,8 @@ | |||
1 | selfpublish != command -v selfpublish.sh || echo sh selfpublish.sh | ||
2 | |||
3 | all: install-stamp | ||
4 | ./stream | ||
5 | |||
6 | install-stamp: | ||
7 | sudo $(selfpublish) | ||
8 | touch $@ | ||
@@ -8,5 +8,5 @@ dashname=dash | |||
8 | dashdir=$srvdir/public_html/$dashname | 8 | dashdir=$srvdir/public_html/$dashname |
9 | sudo mkdir -p "$dashdir" | 9 | sudo mkdir -p "$dashdir" |
10 | sudo chown "$USER:$GROUP" "$dashdir" | 10 | sudo chown "$USER:$GROUP" "$dashdir" |
11 | printf '%s\n' "https://$hostname/$dashname" | 11 | printf '%s\n' "https://$hostname/$dashname/live.mpd" |
12 | ./ffmpeg.sh "$dashdir" | 12 | ./ffmpeg.sh "$dashdir" |