15 lines
318 B
Bash
Executable file
15 lines
318 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
file="$1"
|
|
host=staticweb.ungleich.ch
|
|
dir=/home/services/www/nico/www.nico.schottelius.org/www/temp
|
|
url="http://www.nico.schottelius.org/temp"
|
|
|
|
[ -z "$file" ] && exit 1
|
|
|
|
bfile="$(basename "$file")"
|
|
|
|
scp "$file" "${host}:${dir}"
|
|
ssh "$host" "chmod a+r \"$dir/$bfile\""
|
|
|
|
echo "Pre-released ${url}/${bfile}"
|