nsbin/release_dlna
Nico Schottelius df2daf524d init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
2017-07-19 17:15:41 +02:00

16 lines
245 B
Bash
Executable file

#!/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}"