Move scripts into separate directory

This commit is contained in:
David Halls 2021-10-05 22:44:08 +01:00
parent dc1913728b
commit f840e1c38d
4 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")"
cd "$(dirname "$0")/../certs"
cn="streamana test CA"
@ -12,5 +12,4 @@ done
openssl req -new -x509 -nodes -newkey rsa:2048 -keyout ca.key -out ca.crt -days 3650 -subj "/CN=$cn/"
rm ca.srl
rm -f ca.srl

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd "$(dirname "$0")"
ffmpeg -f lavfi -i color=white:640x480:d=1,format=rgb24 -f lavfi -i anullsrc=cl=mono:r=48000 -vf format=yuv420p -t 1 site/empty.mp4
ffmpeg -f lavfi -i color=white:640x480:d=1,format=rgb24 -f lavfi -i anullsrc=cl=mono:r=48000 -vf format=yuv420p -t 1 ../site/empty.mp4

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")"
cd "$(dirname "$0")/../certs"
host=DNS:localhost

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd "$(dirname "$0")/site"
cd "$(dirname "$0")/../site"
if test "$1" = "--https"; then
serve -S -l tcp://0.0.0.0 --ssl-cert ../certs/server.crt --ssl-key ../certs/server.key
else