From: Christian Heller Date: Thu, 13 Dec 2018 19:12:14 +0000 (+0100) Subject: Improve plomlombot-irc setup. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bdb.prefix%7D%7D/index.html?a=commitdiff_plain;h=cf999e4d2f8b8bd04ae908f2988bbba867e5c45e;p=config Improve plomlombot-irc setup. --- diff --git a/all_new_2018/setup_plomlombot.sh b/all_new_2018/setup_plomlombot.sh index 93e857d..6bfc4d6 100755 --- a/all_new_2018/setup_plomlombot.sh +++ b/all_new_2018/setup_plomlombot.sh @@ -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" diff --git a/all_new_2018/user_scripts/plomlombot_daemon.sh b/all_new_2018/user_scripts/plomlombot_daemon.sh index b7d0709..dcac4f6 100755 --- a/all_new_2018/user_scripts/plomlombot_daemon.sh +++ b/all_new_2018/user_scripts/plomlombot_daemon.sh @@ -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