annna-start-channel-service - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
annna-start-channel-service (578B)
---
1 #!/bin/sh
2
3 set -x
4
5 # Permissions
6 [ -d ${ANNNA_IRCBASE} ] && chmod o+rx ${ANNNA_IRCBASE}
7 [ -d ${IRC_SERVERBASE} ] && chmod o+rx ${IRC_SERVERBASE}
8 ## Channel handlers
9 [ -d "${IRC_SERVERBASE}/${IRC_CHANNEL}" ] \
10 && chmod o+rx "${IRC_SERVERBASE}/${IRC_CHANNEL}"
11 # For annna-say.
12 [ -p "${IRC_SERVERBASE}/${IRC_CHANNEL}/in" ] \
13 && chmod o+w "${IRC_SERVERBASE}/${IRC_CHANNEL}/in"
14 # For annna-cmd.
15 [ -f "${IRC_SERVERBASE}/${IRC_CHANNEL}/out" ] \
16 && chmod o+w "${IRC_SERVERBASE}/${IRC_CHANNEL}/out"
17
18 if [ -f "${IRC_SERVERBASE}/${IRC_CHANNEL}/out" ];
19 then
20 annna-channel-service &
21 fi
22