diff options
| author | Paul Buetow <paul@buetow.org> | 2024-03-13 09:00:12 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-03-14 23:57:14 +0200 |
| commit | 438f47bccab4fa8128e085131fbd9dc499fd07b3 (patch) | |
| tree | 3d4f20b3aa1c9270835f0b7bf1c83d38b6488f45 /frontends/scripts/gemtexter.sh.tpl | |
| parent | b2958427dee916d933f2b4c51f4fe22e307a8cf1 (diff) | |
failover DNS to fishfinger
Diffstat (limited to 'frontends/scripts/gemtexter.sh.tpl')
| -rw-r--r-- | frontends/scripts/gemtexter.sh.tpl | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/frontends/scripts/gemtexter.sh.tpl b/frontends/scripts/gemtexter.sh.tpl index df6fca9..ebd25d8 100644 --- a/frontends/scripts/gemtexter.sh.tpl +++ b/frontends/scripts/gemtexter.sh.tpl @@ -19,6 +19,10 @@ function ensure_site { ln -s $basename www.$basename fi + if [ ! -e mirror.$basename ]; then + ln -s $basename mirror.$basename + fi + if [ ! -d $basename ]; then git clone $repo -b $branch --single-branch $basename else @@ -43,10 +47,13 @@ function ensure_links { if [ ! -e www.$target ]; then ln -s $basename www.$target fi + + if [ ! -e mirror.$target ]; then + ln -s $basename mirror.$target + fi } -<% if ($is_primary->($vio0_ip)) { %> -for site in foo.zone paul.buetow.org; do +for site in foo.zone paul.buetow.org snonux.foo; do ensure_site \ /var/gemini/$site \ https://codeberg.org/snonux/$site \ @@ -58,6 +65,3 @@ for site in foo.zone paul.buetow.org; do done ensure_links /var/gemini/paul.buetow.org buetow.org -ensure_links /var/gemini/paul.buetow.org snonux.foo -<% } %> - |
