diff --git a/chromium b/chromium new file mode 120000 index 0000000..2aaed8a --- /dev/null +++ b/chromium @@ -0,0 +1 @@ +/usr/bin/chromium-browser \ No newline at end of file diff --git a/release_tmp b/release_tmp index 412194a..16e0089 100755 --- a/release_tmp +++ b/release_tmp @@ -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}"