4 # Ensure we have a GPG target to encrypt to.
6 echo "Need public key ID as argument."
11 config_tree_prefix="${HOME}/config/all_new_2018"
12 irclogs_dir=/var/www/html/irclogs
13 irclogs_pw_dir=/var/www/irclogs_pw
15 ./add_encryption_key.sh "${gpg_key}"
16 apt -y install screen python3-venv
17 cp "${config_tree_prefix}"/user_files/plomlombot_daemon.sh /home/plom/
18 chown plom:plom /home/plom/plomlombot_daemon.sh
19 su plom -c "cd && git clone /var/public_repos/plomlombot-irc"
20 systemctl enable /etc/systemd/system/plomlombot.service
21 service plomlombot start
22 mkdir -p "${irclogs_dir}"
23 chown -R plom:plom "${irclogs_dir}"
24 mkdir -p "${irclogs_pw_dir}"
25 chown -R plom:plom "${irclogs_pw_dir}"
26 echo "Don't forget to add a file ~/.plomlombot with content such as:"
27 echo "gpg_key ${gpg_key}"
28 echo "bot: SCREEN_SESSION_NAME BOT_NAME #CHANNEL_NAME IRC_SERVER_NAME LOGS_USER LOGS_PW"
29 echo "# file should end in newline or non-interpreted line such as this"