From 4b685301a5a7ede1ea0f7813e65a97137279f89b Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 20 Apr 2017 23:36:54 +0200 Subject: Add ftppush script. --- bin/ftppush.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bin/ftppush.sh (limited to 'bin') diff --git a/bin/ftppush.sh b/bin/ftppush.sh new file mode 100644 index 0000000..0f609ef --- /dev/null +++ b/bin/ftppush.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Expects a ~/.netrc entry like this: +# machine byvandring.nu +# login byvandring.nu +# password replaceme + +set -eu + +WPUT="wput --reupload --dont-continue -v" + +quiet="-b -o $HOME/wputlog" +case "$1" in + -v) + quiet="";; +esac +WPUT="$WPUT $quiet" + +$WPUT --basename=$HOME/public_websites/bynu.biks.dk/ $HOME/public_websites/bynu.biks.dk/ ftp://byvandring.nu/public_html/ || true +$WPUT /usr/share/javascript/leaflet/ ftp://byvandring.nu/public_html/ || true -- cgit v1.2.3