Commit 0c16b9c6 authored by Nico Schottelius's avatar Nico Schottelius

updated by /home/nico/bin/sync-all-repos

parent 76fc1551
/usr/bin/chromium-browser
\ No newline at end of file
......@@ -5,11 +5,23 @@ host=staticweb.ungleich.ch
dir=/home/services/www/nico/www.nico.schottelius.org/www/temp
url="https://www.nico.schottelius.org/temp"
delete_after=""
[ -z "$file" ] && exit 1
if [ "$file" = "-" ]; then
file=$(mktemp)
cat > "$file"
delete_after=yes
fi
bfile="$(basename "$file")"
scp "$file" "${host}:${dir}"
ssh "$host" "chmod a+r \"$dir/$bfile\""
echo "Pre-released ${url}/${bfile}"
if [ "$delete_after" ]; then
rm -f "$file"
fi
echo "${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