home · contact · privacy
Fix double encryption key retrieval, add sendonly mail servers.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 15 Dec 2018 18:33:19 +0000 (19:33 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 15 Dec 2018 18:33:19 +0000 (19:33 +0100)
all_new_2018/setup_scripts/setup_play.sh
all_new_2018/setup_scripts/setup_web.sh

index 2d9849d1c8ea7b17469d2de555453b229d74398a..5c024ecd3f049118158b4ccf84b39618e1424054 100755 (executable)
@@ -12,6 +12,7 @@ config_tree_prefix="${HOME}/config/all_new_2018"
 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
@@ -22,24 +23,7 @@ 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
 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.
index 7adb62fda640e1e634d872b95ebfa16d023ff66a..400aa223728b1b74e79bea67a541e9a2ff8f4cc3 100755 (executable)
@@ -7,6 +7,7 @@ setup_scripts_dir="${config_tree_prefix}/setup_scripts"
 cd "${setup_scripts_dir}"
 
 ./hardlink_etc.sh web
+./setup_sendonly.sh
 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/nginx/nginx.conf
 sed -i "s/REPLACE_fqdn_ECALPER/$(hostname -f)/g" /etc/gitweb.conf
 cd /var/