diff options
| author | Paul Buetow <paul@buetow.org> | 2022-08-30 13:44:41 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-08-30 13:44:41 +0100 |
| commit | 330a80d83da4bd3b14cce226ca42e4ca8439d8e7 (patch) | |
| tree | 2ce1fe6edd03ce9f5e82f74fad6bbab7535a4926 /frontends/scripts | |
| parent | 2b8efc24b4f0206cf76947cb6afa9cb396c376ee (diff) | |
add scripts
Diffstat (limited to 'frontends/scripts')
| -rw-r--r-- | frontends/scripts/gemtexter.sh.tpl | 3 | ||||
| -rw-r--r-- | frontends/scripts/rsync.sh.tpl | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/frontends/scripts/gemtexter.sh.tpl b/frontends/scripts/gemtexter.sh.tpl index e62d050..8b0e524 100644 --- a/frontends/scripts/gemtexter.sh.tpl +++ b/frontends/scripts/gemtexter.sh.tpl @@ -23,6 +23,7 @@ function ensure_site { fi } +<% if ($is_primary->($vio0_ip)) { %> for site in foo.zone snonux.land paul.buetow.org; do ensure_site \ /var/gemini/$site \ @@ -33,4 +34,4 @@ for site in foo.zone snonux.land paul.buetow.org; do https://codeberg.org/snonux/$site \ content-html done - +<% } %> diff --git a/frontends/scripts/rsync.sh.tpl b/frontends/scripts/rsync.sh.tpl new file mode 100644 index 0000000..c55a86b --- /dev/null +++ b/frontends/scripts/rsync.sh.tpl @@ -0,0 +1,8 @@ +#!/bin/sh + +PATH=$PATH:/usr/local/bin + +<% unless ($is_primary->($vio0_ip)) { %> +/usr/local/bin/rsync -av --delete rsync://blowfish.buetow.org/publicgemini/ /var/gemini +/usr/local/bin/rsync -av --delete rsync://blowfish.buetow.org/publichttp/ /var/www/htdocs +<% } %> |
