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