add rm_tmp

This commit is contained in:
Nico Schottelius 2021-11-25 10:36:11 +01:00
parent dffc965ac8
commit 470951949e
1 changed files with 15 additions and 0 deletions

15
rm_tmp Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh -e
file="$1"
host=staticweb.ungleich.ch
dir=/home/services/www/nico/www.nico.schottelius.org/www/temp
url="https://www.nico.schottelius.org/temp"
[ -z "$file" ] && exit 1
bfile="$(basename "$file")"
ssh "$host" "rm -f \"$dir/$bfile\""
echo "Deleted ${url}/${bfile}"