+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 #!/bin/sh -e
file="$1" file="$1"
host=home.schottelius.org host=staticweb.ungleich.ch
dir=public_html/temp/ dir=/home/services/www/nico/www.nico.schottelius.org/www/temp
url="http://home.schottelius.org/~nico/temp" url="http://www.nico.schottelius.org/temp"
[ -z "$file" ] && exit 1 [ -z "$file" ] && exit 1
bfile="$(basename "$file")" bfile="$(basename "$file")"
scp "$file" "${host}:$dir" scp "$file" "${host}:${dir}"
ssh $host "chmod a+r \"$dir/$bfile\"" ssh "$host" "chmod a+r \"$dir/$bfile\""
echo "Pre-released ${url}/${bfile}" echo "Pre-released ${url}/${bfile}"