cd "${setup_scripts_dir}"
./setup_sendonly.sh
+
./add_encryption_key.sh "${gpg_key}"
-config_tree_prefix="${HOME}/config/all_new_2018/"
-./hardlink_etc.sh play
apt -y install weechat screen vim
-cp "${config_tree_prefix}user_files/encrypter.sh" /home/plom/
+
+# Link and copy over files.
+./hardlink_etc.sh play
+cp "${config_tree_prefix}/user_files/encrypter.sh" /home/plom/
chown plom:plom /home/plom/encrypter.sh
-cp "${config_tree_prefix}user_files/weechat-wrapper.sh" /home/plom/
+cp "${config_tree_prefix}/user_files/weechat-wrapper.sh" /home/plom/
chown plom:plom /home/plom/weechat-wrapper.sh
-cp "${config_tree_prefix}user_files/weechatrc" /home/plom/.weechatrc
+cp "${config_tree_prefix}/user_files/weechatrc" /home/plom/.weechatrc
chown plom:plom /home/plom/.weechatrc
apt -y install screen
echo "$gpg_key" > /home/plom/.encrypt_target
chown plom:plom /home/plom/.encrypt_target
-# TODO: We may remove dirmngr here if only this script installed it.
+
+# Start encrypt_chatlogs job.
systemctl daemon-reload
systemctl start encrypt_chatlogs.timer