mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Add mu4e mail provisioning with vault-backed iCloud secret
This commit is contained in:
19
scripts/update_protonmail_bridge_secret.sh
Executable file
19
scripts/update_protonmail_bridge_secret.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -eu
|
||||
|
||||
printf "Proton Bridge password: "
|
||||
stty -echo
|
||||
IFS= read -r proton_bridge_password
|
||||
stty echo
|
||||
printf "\n"
|
||||
|
||||
if [ -z "$proton_bridge_password" ]; then
|
||||
printf "Error: empty password, nothing stored.\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf "%s" "$proton_bridge_password" \
|
||||
| secret-tool store --label="ProtonMail Bridge" protonmail-bridge protonmail
|
||||
|
||||
printf "ProtonMail Bridge secret updated in GNOME Keyring.\n"
|
||||
Reference in New Issue
Block a user