df2daf524d
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
16 lines
245 B
Bash
Executable file
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}"
|