Refactoring sfeed init setup. - selfhost - Incus configurations for my self-hosted setup.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 48f39fe4a0a98c2d068246a14f7a0c2858a4d137
 (DIR) parent 1f2016feeb6d8fbc28b24c39098371421b0218dd
 (HTM) Author: Jay Scott <me@jay.scot>
       Date:   Wed, 10 Jul 2024 07:37:57 +0100
       
       Refactoring sfeed init setup.
       
       Diffstat:
         D sfeed/files/fetch.sh                |       4 ----
         M sfeed/init.sh                       |       1 -
         M sfeed/sfeed.yaml                    |       9 +++++++++
       
       3 files changed, 9 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/sfeed/files/fetch.sh b/sfeed/files/fetch.sh
       @@ -1,4 +0,0 @@
       -#!/bin/sh
       -
       -sfeed_update
       -sfeed_html /root/.sfeed/feeds/* > /srv/index.html
 (DIR) diff --git a/sfeed/init.sh b/sfeed/init.sh
       @@ -6,4 +6,3 @@ incus stop $HOST
        incus delete $HOST
        incus launch images:alpine/3.20/cloud $HOST < $HOST.yaml
        
       -incus file push ./files/fetch.sh $HOST/etc/periodic/hourly/ -pv --mode 755
 (DIR) diff --git a/sfeed/sfeed.yaml b/sfeed/sfeed.yaml
       @@ -30,3 +30,12 @@ config:
            packages:
              - sfeed
              - curl
       +    write_files:
       +      - path: /etc/periodic/hourly/sfeed.sh
       +        permissions: '0755'
       +        content: |
       +          #!/bin/sh
       +
       +          sfeed_update
       +          sfeed_html /root/.sfeed/feeds/* > /srv/index.html
       +