diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-03-20 18:06:05 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2021-03-20 18:06:05 +0100 |
| commit | b8e8a12b1f76e2649ff43b4cf10bcdeb04696c1c (patch) | |
| tree | 017b255f9534b771d8197d4a7f6b4c6af82f3c20 | |
| parent | 0417289fc7246d8facbdcf88847d00d8cad079c6 (diff) | |
| download | quatuorbellefeuille.com-b8e8a12b1f76e2649ff43b4cf10bcdeb04696c1c.tar.xz | |
Add script to upload to Uberspace
| -rw-r--r-- | Makefile | 5 | ||||
| -rwxr-xr-x | upload.sh | 9 |
2 files changed, 13 insertions, 1 deletions
@@ -29,10 +29,13 @@ stylesheets_folders = $(call dirnames,$(stylesheets)) scripts = $(foreach img,$(shell find scripts -type f),$(OUTDIR)/$(img)) scripts_folders = $(call dirnames,$(scripts)) -.PHONY: all clean site +.PHONY: all clean site upload all: site +upload: site + ./upload.sh $(OUTDIR) + clean: -rm -r $(OUTDIR) diff --git a/upload.sh b/upload.sh new file mode 100755 index 0000000..09606ca --- /dev/null +++ b/upload.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -eux + +OUTDIR=$1 + +. settings.sh +dest=/var/www/virtual/klg/${domain} +rsync -avz --delete ${OUTDIR}/ uberspace:${dest}/ |
