mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-12 01:49:56 +01:00
mediamtx: Go defalut 1.22 > 1.25
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Install MediaMTX
|
# Install MediaMTX
|
||||||
|
|
||||||
GO_VERSION="122"
|
GO_VERSION="125"
|
||||||
|
|
||||||
# Check for Root Privileges
|
# Check for Root Privileges
|
||||||
if ! [ $(id -u) = 0 ]; then
|
if ! [ $(id -u) = 0 ]; then
|
||||||
@@ -20,8 +20,8 @@ mkdir -p /usr/local/etc/rc.d
|
|||||||
|
|
||||||
# MediaMTX Setup
|
# MediaMTX Setup
|
||||||
git clone https://github.com/bluenviron/mediamtx /mediamtx
|
git clone https://github.com/bluenviron/mediamtx /mediamtx
|
||||||
cd /mediamtx && go122 generate ./...
|
cd /mediamtx && go${GO_VERSION} generate ./...
|
||||||
cd /mediamtx && go122 build .
|
cd /mediamtx && go${GO_VERSION} build .
|
||||||
cp -f /mediamtx/mediamtx /usr/local/bin/mediamtx
|
cp -f /mediamtx/mediamtx /usr/local/bin/mediamtx
|
||||||
chmod +x /usr/local/bin/mediamtx
|
chmod +x /usr/local/bin/mediamtx
|
||||||
if [ ! -f "/usr/local/etc/mediamtx/mediamtx.yml" ]; then
|
if [ ! -f "/usr/local/etc/mediamtx/mediamtx.yml" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user