add rm_tmp
This commit is contained in:
parent
dffc965ac8
commit
470951949e
1 changed files with 15 additions and 0 deletions
15
rm_tmp
Executable file
15
rm_tmp
Executable 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}"
|
Loading…
Reference in a new issue