nsbin/release_tmp

16 lines
319 B
Text
Raw Normal View History

#!/bin/sh -e
file="$1"
2019-04-12 16:18:39 +00:00
host=staticweb.ungleich.ch
dir=/home/services/www/nico/www.nico.schottelius.org/www/temp
2019-04-12 16:46:31 +00:00
url="https://www.nico.schottelius.org/temp"
[ -z "$file" ] && exit 1
bfile="$(basename "$file")"
2019-04-12 16:18:39 +00:00
scp "$file" "${host}:${dir}"
ssh "$host" "chmod a+r \"$dir/$bfile\""
echo "Pre-released ${url}/${bfile}"