diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-02-19 02:27:37 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-02-19 02:27:37 -0500 |
commit | ba115c88c5f93561b6f521d6dc232c7c6d85801b (patch) | |
tree | 08cc0664acbb037b90fc24c7afc64489c1e67a70 | |
parent | 7dfa1a92278e549b79a22011f885325721146386 (diff) | |
download | puppet-tozt-ba115c88c5f93561b6f521d6dc232c7c6d85801b.tar.gz puppet-tozt-ba115c88c5f93561b6f521d6dc232c7c6d85801b.zip |
distribute algo secrets to mail
-rwxr-xr-x | bin/algo-config | 15 |
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 |