Fix annna-restart-services for new abstraction model. - annna - Annna the nice friendly bot.
 (HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
       ---
 (DIR) commit 1ff9f311fd4d780a7039dba82f29d9a4bd0c8745
 (DIR) parent 86f4d83186809dbdd5317b6e4004eb5751f44363
 (HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Sat, 15 Jan 2022 07:23:18 +0100
       
       Fix annna-restart-services for new abstraction model.
       
       Diffstat:
         M annna-start-service                 |       2 --
         A annna-start-services                |      21 +++++++++++++++++++++
       
       2 files changed, 21 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/annna-start-service b/annna-start-service
       @@ -12,8 +12,6 @@ server="$1"
        channel="$2"
        
        export PATH="$PATH:/home/annna/bin"
       -# plan9port
       -export PATH="$PATH:/opt/plan9/bin"
        
        cfgbase="$(pwd)"
        ircbase="$(cat ${cfgbase}/ircbase)"
 (DIR) diff --git a/annna-start-services b/annna-start-services
       @@ -0,0 +1,21 @@
       +#!/bin/sh
       +
       +export PATH="$PATH:/home/annna/bin"
       +
       +#cfgbase="$(pwd)"
       +cfgbase="$HOME/annna"
       +touch ${cfgbase}/running
       +
       +cd ${cfgbase}
       +for server in $(find . -maxdepth 1 -type d | tail -n +2 | cut -c 3-);
       +do
       +        [ ! -f ${server}/autoconnect ] && continue
       +
       +        channels="$(cat ${server}/channels | tr '\n' ' ')"
       +
       +        for chan in ${channels};
       +        do
       +                annna-start-service "${server}" "${chan}"
       +        done
       +done
       +