+i3up, fix release_tmp

This commit is contained in:
Nico Schottelius 2019-04-12 18:18:39 +02:00
parent 0acb1a0d9d
commit b1c3f103b7
2 changed files with 8 additions and 5 deletions

3
i3up Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
i3 move workspace to output up

View File

@ -1,15 +1,15 @@
#!/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}"