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
chown plom:plom /home/plom/weechat-wrapper.sh
cp "${config_tree_prefix}user_files/weechatrc" /home/plom/.weechatrc
chown plom:plom /home/plom/.weechatrc
-apt -y install screen gnupg dirmngr
-keyservers='sks-keyservers.net/ keys.gnupg.net'
-set +e
-while true; do
- do_break=0
- for keyserver in $(echo "${keyservers}"); do
- su plom -c "gpg --no-tty --keyserver $keyserver --recv-key ${gpg_key}"
- if [ $? -eq "0" ]; then
- do_break=1
- break
- fi
- echo "Attempt with keyserver ${keyserver} unsuccessful, trying other."
- done
- if [ "${do_break}" -eq "1" ]; then
- break
- fi
-done
-set -e
+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.