init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								256dc98754
							
						
					
				
			
			
				commit
				
					
						df2daf524d
					
				
			
		
					 641 changed files with 140617 additions and 12 deletions
				
			
		
							
								
								
									
										16
									
								
								release_dlna
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								release_dlna
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
#!/bin/sh -e
 | 
			
		||||
 | 
			
		||||
dir=/home/services/dlna
 | 
			
		||||
 | 
			
		||||
for file in "$@"; do
 | 
			
		||||
    fname=${file##*/}
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
[ -z "$file" ] && exit 1
 | 
			
		||||
 | 
			
		||||
bfile="$(basename "$file")"
 | 
			
		||||
 | 
			
		||||
scp "$file" "${host}:$dir"
 | 
			
		||||
ssh $host "chmod a+r \"$dir/$bfile\""
 | 
			
		||||
 | 
			
		||||
echo "Pre-released ${url}/${bfile}"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue