release_dlna 245 Bytes
Newer Older
Nico Schottelius's avatar
init  
Nico Schottelius committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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}"