add distro agnostic client
Former-commit-id: 480dcbe66060e90a38580c9eb5a2fba8c14d8768
This commit is contained in:
parent
584e04a8d9
commit
98ee5667e4
@ -29,8 +29,8 @@ struct SharedState {
|
|||||||
#[get("/")]
|
#[get("/")]
|
||||||
fn index() -> String {
|
fn index() -> String {
|
||||||
format!("Wecome to the AV1Master Server version {version}\n
|
format!("Wecome to the AV1Master Server version {version}\n
|
||||||
This currently requires a working <a href=\"https://nixos.org/nix/\">nix</a> installion\n
|
This currently requires a distro with CAP_SYS_USER_NS enabled and correct permissions
|
||||||
curl -L {baseurl}/client.sh > client.sh && chmod +x ./client.sh && ./client.sh {baseurl}", version=VERSION, baseurl="https://av1.dodsorf.as")
|
curl -L {baseurl}/client.sh > client.sh && chmod +x ./av1client && ./av1client {baseurl}", version=VERSION, baseurl="https://av1.dodsorf.as")
|
||||||
}
|
}
|
||||||
|
|
||||||
#[get("/version")]
|
#[get("/version")]
|
||||||
|
1
src/static/av1client.REMOVED.git-id
Normal file
1
src/static/av1client.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
90d35de41aad83f4f5eb6eac0930c4bdb1401735
|
@ -1,5 +1,4 @@
|
|||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env bash
|
||||||
#! nix-shell -i bash -p bash curl jq libaom ffmpeg-full
|
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
@ -10,7 +9,7 @@ version="0.5.0"
|
|||||||
while true; do
|
while true; do
|
||||||
sleep 30
|
sleep 30
|
||||||
set +e
|
set +e
|
||||||
upstream_version=`curl -s "$base_url"/version`
|
upstream_version=`curl -L -f -s "$base_url"/version`
|
||||||
retval=$?
|
retval=$?
|
||||||
set -e
|
set -e
|
||||||
if [ $retval -ne 0 ]; then
|
if [ $retval -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user