home · contact · privacy
Use clear password files for HTTP basic auth on IRC logs.
[config] / all_new_2018 / user_scripts / plomlombot_daemon.sh
index df4f49d04d26468fe05252ba39b81a945c21d8d5..b7054e1c23a7d37cd630031453027f5f55965b45 100755 (executable)
@@ -39,7 +39,7 @@ while true; do
                # FIXME: Note the trouble we will have if we have the same channel
                # name on different servers …
                 ln -sfn "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}"
-                htpasswd -c "${irclogs_pw_dir}/${shortened_channel_name}" "${login_user}" "${login_pw}"
+                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