X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=all_new_2018%2Fsetup_scripts%2Fsetup_play.sh;h=f37be49ca18777fd3b5357a9b5f379c3808ec3b7;hb=f741879b9686ecd1d9286ff88cadde40339c4d9a;hp=5c024ecd3f049118158b4ccf84b39618e1424054;hpb=7813a47d8633aa5f5b16b03047f25be83c3f5e47;p=config
diff --git a/all_new_2018/setup_scripts/setup_play.sh b/all_new_2018/setup_scripts/setup_play.sh
index 5c024ec..f37be49 100755
--- a/all_new_2018/setup_scripts/setup_play.sh
+++ b/all_new_2018/setup_scripts/setup_play.sh
@@ -12,20 +12,25 @@ config_tree_prefix="${HOME}/config/all_new_2018"
setup_scripts_dir="${config_tree_prefix}/setup_scripts"
cd "${setup_scripts_dir}"
+# If anything strange happens, let root send mail to us.
./setup_sendonly.sh
-./add_encryption_key.sh "${gpg_key}"
-config_tree_prefix="${HOME}/config/all_new_2018/"
-./hardlink_etc.sh play
+
+# Apart from weechat, vim and screen will also be useful for everyday activity.
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.
+./add_encryption_key.sh "${gpg_key}"
systemctl daemon-reload
systemctl start encrypt_chatlogs.timer