summaryrefslogtreecommitdiff
path: root/bin/ftppush.sh
blob: 3db24ce0f8b37a65a382dfa707d1c2c3132ed6d2 (plain)
  1. #!/bin/sh
  2. # Expects a ~/.netrc entry like this:
  3. # machine byvandring.nu
  4. # login byvandring.nu
  5. # password replaceme
  6. set -e
  7. WPUT="wput --reupload --dont-continue -v"
  8. quiet="-b -o $HOME/wputlog"
  9. case "$1" in
  10. -v)
  11. quiet="";;
  12. esac
  13. WPUT="$WPUT $quiet"
  14. $WPUT --basename=$HOME/public_websites/bynu.biks.dk/ $HOME/public_websites/bynu.biks.dk/ ftp://byvandring.nu/public_html/ || true
  15. $WPUT /usr/share/javascript/leaflet/ ftp://byvandring.nu/public_html/ || true