Allow CGI in gopher, fix bug in stagit script. - infra - Terraform IoC for my remote (Hetzner) and local (Incus) servers.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 04942e5e4cd292940891157315627ee4e78a4140
 (DIR) parent 17bb732a49f823f59274ab190739d66d54378aeb
 (HTM) Author: Jay Scott <me@jay.scot>
       Date:   Tue, 31 Jan 2023 19:15:25 +0000
       
       Allow CGI in gopher, fix bug in stagit script.
       
       Diffstat:
         M ansible/roles/gopher/templates/geo… |       2 +-
         M ansible/roles/stagit/templates/sta… |       4 ++--
       
       2 files changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/ansible/roles/gopher/templates/geomyidae.service.j2 b/ansible/roles/gopher/templates/geomyidae.service.j2
       @@ -10,7 +10,7 @@ Type=forking
        Restart=on-abnormal
        RestartSec=1
        User=root
       -ExecStart=/usr/local/bin/geomyidae -v 0 -b {{ geomyidae.root_path }} -p 70 -e -n -u {{ geomyidae.user }} -g {{ geomyidae.group }}
       +ExecStart=/usr/local/bin/geomyidae -v 0 -b {{ geomyidae.root_path }} -p 70 -n -u {{ geomyidae.user }} -g {{ geomyidae.group }}
        
        [Install]
        WantedBy=multi-user.target
 (DIR) diff --git a/ansible/roles/stagit/templates/stagit_create.sh.j2 b/ansible/roles/stagit/templates/stagit_create.sh.j2
       @@ -2,7 +2,7 @@
        
        reposdir="{{ stagit_gopher.repo_path }}"
        gopherdir="{{ stagit_gopher.output_path }}"
       -stagitdir="git/"
       +stagitdir="/git"
        destdir="${gopherdir}/${stagitdir}"
        
        # remove /'s at the end.
       @@ -22,7 +22,7 @@ for dir in "${reposdir}/"*/; do
        
                mkdir -p "${destdir}/${d}"
                cd "${destdir}/${d}" || continue
       -        /usr/local/bin/stagit-gopher -b "${stagitdir}/${d}" -c ".cache" \
       +        /usr/local/bin/stagit-gopher -b "${stagitdir}/${d}" \
                        -u "gopher://jay.scot/1/git/$d/" "${reposdir}/${r}"
        
                # symlinks