home · contact · privacy
Use clear password files for HTTP basic auth on IRC logs.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 13 Dec 2018 21:25:36 +0000 (22:25 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 13 Dec 2018 21:25:36 +0000 (22:25 +0100)
all_new_2018/setup_plomlombot.sh
all_new_2018/user_scripts/plomlombot_daemon.sh

index 45625882f70551fb74ab6d9d6cca55f4190b2ea5..fa8eab2156c6c9fd2b9d5ddd5a689d87073c985d 100755 (executable)
@@ -13,7 +13,7 @@ irclogs_dir=/var/www/html/irclogs
 irclogs_pw_dir=/var/www/irclogs_pw
 cp "${config_tree_prefix}"/user_scripts/plomlombot_daemon.sh /home/plom/
 chown plom:plom /home/plom/plomlombot_daemon.sh
-apt -y install screen python3-venv gpg dirmngr apache2-utils
+apt -y install screen python3-venv gpg dirmngr
 su plom -c "gpg --recv-key ${gpg_key}"
 # TODO: After this, we could in theory remove dirmngr if we only installed it just now.
 su plom -c "cd && git clone /var/public_repos/plomlombot-irc"
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