summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-12-06 05:19:12 -0500
committerJesse Luehrs <doy@tozt.net>2018-12-06 05:19:12 -0500
commit839e453418783fb2f5718d5167aa0720a4010cd5 (patch)
treedef1be055b679833f14708346a9d5756e519a2bf /bin
parent0041d604e5f4de79949d425a57308117b9bcf49a (diff)
downloadpuppet-tozt-839e453418783fb2f5718d5167aa0720a4010cd5.tar.gz
puppet-tozt-839e453418783fb2f5718d5167aa0720a4010cd5.zip
sync wireguard secrets to newmail, not old
old mail server can't even run wireguard
Diffstat (limited to 'bin')
-rwxr-xr-xbin/algo-config4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/algo-config b/bin/algo-config
index 6026921..dbd8781 100755
--- a/bin/algo-config
+++ b/bin/algo-config
@@ -34,7 +34,9 @@ $secrets_bin sync partofme
# mail
sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1/32|' "$config_path/mail.conf" > "$config_path/mail-not-captive.conf"
-scp "$config_path/mail-not-captive.conf" root@mail.tozt.net:/etc/wireguard/algo.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
echo "algo-captive"