Set some more permissions so scripts will work. - 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 bcf71df46395b8acb5a5511a875b95834f54705c
(DIR) parent a6ea6af5917d6dfbdd860b53c4be2d48bceecab9
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Wed, 29 Oct 2025 23:30:02 +0100
Set some more permissions so scripts will work.
Diffstat:
M annna-join-channels | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/annna-join-channels b/annna-join-channels
@@ -12,12 +12,16 @@ do
# Permissions for helpers.
[ -d ${ANNNA_IRCBASE} ] && chmod o+rx ${ANNNA_IRCBASE}
[ -d ${IRC_SERVERBASE} ] && chmod o+rx ${IRC_SERVERBASE}
+
+ # This is needed so scripts can traverse further down.
+ [ -d "${IRC_SERVERBASE}/${IRC_CHANNEL}" ] \
+ && chmod o+x "${IRC_SERVERBASE}/${IRC_CHANNEL}"
# annna-say
[ -p "${IRC_SERVERBASE}/${IRC_CHANNEL}/in" ] \
&& chmod o+w "${IRC_SERVERBASE}/${IRC_CHANNEL}/in"
# Scripts like comic irc output.
- [ -p "${IRC_SERVERBASE}/${IRC_CHANNEL}/in" ] \
- && chmod o+r "${IRC_SERVERBASE}/${IRC_CHANNEL}/in"
+ [ -p "${IRC_SERVERBASE}/${IRC_CHANNEL}/out" ] \
+ && chmod o+r "${IRC_SERVERBASE}/${IRC_CHANNEL}/out"
annna-channel-service
done