summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-02-19 02:27:37 -0500
committerJesse Luehrs <doy@tozt.net>2019-02-19 02:27:37 -0500
commitba115c88c5f93561b6f521d6dc232c7c6d85801b (patch)
tree08cc0664acbb037b90fc24c7afc64489c1e67a70 /bin
parent7dfa1a92278e549b79a22011f885325721146386 (diff)
downloadpuppet-tozt-ba115c88c5f93561b6f521d6dc232c7c6d85801b.tar.gz
puppet-tozt-ba115c88c5f93561b6f521d6dc232c7c6d85801b.zip
distribute algo secrets to mail
Diffstat (limited to 'bin')
-rwxr-xr-xbin/algo-config15
1 files changed, 7 insertions, 8 deletions
diff --git a/bin/algo-config b/bin/algo-config
index db8790c..ca414b9 100755
--- a/bin/algo-config
+++ b/bin/algo-config
@@ -42,14 +42,13 @@ cp "$config_path"/partofme-not-captive.conf /mnt/puppet/partofme/wireguard
$secrets_bin sync partofme
# mail
-# XXX
-# sed -i 's|^\(Address.*\),.*|\1|' "$config_path"/mail.conf
-# cp "$config_path"/mail.conf "$config_path"/mail-not-captive.conf
-# sed -i 's|^AllowedIPs.*|AllowedIPs = 0.0.0.0/0|' "$config_path"/mail.conf
-# sed -i 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, 172.16.0.1/32|' "$config_path"/mail-not-captive.conf
-# scp "$config_path"/mail-not-captive.conf root@newsmtp.tozt.net:/etc/wireguard/algo.conf
-# cp "$config_path"/mail-not-captive.conf /mnt/puppet/mail/wireguard
-# $secrets_bin sync mail
+sed -i 's|^\(Address.*\),.*|\1|' "$config_path"/mail.conf
+cp "$config_path"/mail.conf "$config_path"/mail-not-captive.conf
+sed -i 's|^AllowedIPs.*|AllowedIPs = 0.0.0.0/0|' "$config_path"/mail.conf
+sed -i 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, 172.16.0.1/32|' "$config_path"/mail-not-captive.conf
+scp "$config_path"/mail-not-captive.conf root@newsmtp.tozt.net:/etc/wireguard/algo.conf
+cp "$config_path"/mail-not-captive.conf /mnt/puppet/mail/wireguard
+$secrets_bin sync mail
# phone
sed -i 's|^\(Address.*\),.*|\1|' "$config_path"/phone.conf