From 7823df99c3e51c9591bf2c5a2a0071163c6b4832 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 15 Dec 2018 19:40:01 +0100 Subject: [PATCH] Improve play server setup script. --- all_new_2018/setup_scripts/setup_play.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/all_new_2018/setup_scripts/setup_play.sh b/all_new_2018/setup_scripts/setup_play.sh index 5c024ec..a226ca0 100755 --- a/all_new_2018/setup_scripts/setup_play.sh +++ b/all_new_2018/setup_scripts/setup_play.sh @@ -13,19 +13,22 @@ setup_scripts_dir="${config_tree_prefix}/setup_scripts" 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 -- 2.30.2