diff --git a/00-stream.yaml b/00-stream.yaml new file mode 100644 index 0000000..e364250 --- /dev/null +++ b/00-stream.yaml @@ -0,0 +1,9 @@ +network: + version: 2 + renderer: networkd + ethernets: + eth: + match: + name: enx* + addresses: + - 172.16.111.111/24 diff --git a/encoder/network.php b/encoder/network.php index 39aa5dd..d1251ff 100755 --- a/encoder/network.php +++ b/encoder/network.php @@ -1,6 +1,14 @@ &1", $out, $rc); + if ($rc !== 0) { + rollback(); + } } } diff --git a/install.sh b/install.sh index 329ed58..5a72df3 100755 --- a/install.sh +++ b/install.sh @@ -391,6 +391,7 @@ sudo cp -r html/* /var/www/html/ sudo cp -r encoder/* /var/www/encoder/ sudo cp private.pem /var/www/ sudo cp public.pem /var/www/ +sudo cp 00-stream.yaml /var/www/ sudo a2enmod ssl sudo systemctl enable apache2 @@ -410,4 +411,4 @@ sudo ufw allow proto udp to 224.0.0.0/4 sudo ufw route allow proto udp to 224.0.0.0/4 sudo ufw deny out to 239.255.254.254 port 39000 proto udp sudo systemctl daemon-reload -sudo chmod 444 /sys/class/dmi/id/product_uuid \ No newline at end of file +sudo chmod 444 /sys/class/dmi/id/product_uuid