Commit b1c3f103 authored by Nico Schottelius's avatar Nico Schottelius

+i3up, fix release_tmp

parent 0acb1a0d
#!/bin/sh
i3 move workspace to output up
#!/bin/sh -e
file="$1"
host=home.schottelius.org
dir=public_html/temp/
url="http://home.schottelius.org/~nico/temp"
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\""
scp "$file" "${host}:${dir}"
ssh "$host" "chmod a+r \"$dir/$bfile\""
echo "Pre-released ${url}/${bfile}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment