home · contact · privacy
Improve plomlombot-irc setup.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 13 Dec 2018 19:12:14 +0000 (20:12 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 13 Dec 2018 19:12:14 +0000 (20:12 +0100)
all_new_2018/setup_plomlombot.sh
all_new_2018/user_scripts/plomlombot_daemon.sh

index 93e857d7d4f2c7b0a25fb29ae157d2f059031199..6bfc4d6a0a60a9e0cc6b83d85774a89a7e231c9c 100755 (executable)
@@ -23,3 +23,4 @@ chown -R plom:plom "${irclogs_dir}"
 echo "Don't forget to add a file ~/.plomlombot with content such as:"
 echo "gpg_key ${gpg_key}"
 echo "bot: SCREEN_SESSION_NAME BOT_NAME #CHANNEL_NAME IRC_SERVER_NAME"
+echo "# file should end in newline or non-interpreted line such as this"
index b7d07093f138ee82e8802ce432776ba011f50b7c..dcac4f677c453f0f665a4e8ae66a001b88857270 100755 (executable)
@@ -35,7 +35,7 @@ while true; do
                 if [ "${first_char}" = "#" ]; then
                     shortened_channel_name=$(echo -n "${channel_name}" | cut -c2-)
                 fi
-               ln -sf "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}"
+                ln -sfn "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}"
 
            # If "key:" line, encrypt old raw logs to that GPG key.
            elif [ "${first_word}" = "gpg_key": ]; then