From 98f8f0efc57639f9447f142540c0ffd91817a4ae Mon Sep 17 00:00:00 2001 From: KsmoinO <99479-KsmoinO1@users.noreply.framagit.org> Date: Mon, 15 Aug 2022 20:33:52 +0200 Subject: [PATCH] Add publish script --- publish.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 publish.sh diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..d96ebb7 --- /dev/null +++ b/publish.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +[[ -d ./public ]] && rm -rf ./public + +zola build && { + +for webserver in aspire-7250 backdrifts; do + rsync -P -rvzc --include tags --cvs-exclude --delete "public/" "root@${webserver}:/var/www/html/garbaye.fr" +done + +}