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"
# 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