From: Christian Heller Date: Wed, 19 Dec 2018 23:12:35 +0000 (+0100) Subject: Fix plomlombot_daemon script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_data.id_%7D%7D?a=commitdiff_plain;h=020bfb190cfa6c6b13acfa810f47146857f7ff57;p=config Fix plomlombot_daemon script. --- diff --git a/all_new_2018/user_files/plomlombot_daemon.sh b/all_new_2018/user_files/plomlombot_daemon.sh index a74c24b..5cf1f6a 100755 --- a/all_new_2018/user_files/plomlombot_daemon.sh +++ b/all_new_2018/user_files/plomlombot_daemon.sh @@ -41,8 +41,8 @@ while true; do ln -sfn "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}" echo "${login_user}":'{PLAIN}'"${login_pw}" > "${irclogs_pw_dir}/${shortened_channel_name}" - # If "key:" line, encrypt old raw logs to that GPG key. - elif [ "${first_word}" = "gpg_key": ]; then + # If "gpg" line, encrypt old raw logs to that GPG key. + elif [ "${first_word}" = "gpg_key" ]; then key=$(echo -n "${line}" | cut -d' ' -f2) mkdir -p ~/plomlombot_db cd ~/plomlombot_db