This commit is contained in:
Simon Ungar Felding 2024-12-12 12:53:18 +01:00
parent 037bc21902
commit 97ae2ee134

View File

@ -55,17 +55,17 @@ else
socat TCP-LISTEN:2143,fork TCP:127.0.0.1:1143 & socat TCP-LISTEN:2143,fork TCP:127.0.0.1:1143 &
# Broken until https://github.com/ProtonMail/proton-bridge/issues/512 is resolved. # Broken until https://github.com/ProtonMail/proton-bridge/issues/512 is resolved.
# # check if the vault-editor can read the config # check if the vault-editor can read the config
# /protonmail/vault-editor read 2>&1 1>/dev/null /protonmail/vault-editor read 2>&1 1>/dev/null
# # Modify the protonmail config with env variables and expected values # Modify the protonmail config with env variables and expected values. Env variables must be converted from string to boolean.
# /protonmail/vault-editor read | \ /protonmail/vault-editor read | \
# jq '.Settings.AutoUpdate = env.PROTONMAIL_AutoUpdate jq '.Settings.AutoUpdate = (env.PROTONMAIL_AutoUpdate | if . == "true" then true else false end)
# | .Settings.TelemetryDisabled = env.PROTONMAIL_TelemetryDisabled | .Settings.TelemetryDisabled = (env.PROTONMAIL_TelemetryDisabled | if . == "true" then true else false end)
# | .Settings.GluonDir |= "\(env.HOME)/.local/share/protonmail/bridge-v3/gluon" | .Settings.GluonDir |= "\(env.HOME)/.local/share/protonmail/bridge-v3/gluon"
# | .Settings.Autostart = false | .Settings.Autostart = false
# | .Settings.SMTPPort = 1025 | .Settings.SMTPPort = 1025
# | .Settings.IMAPPort = 1143 ' \ | .Settings.IMAPPort = 1143 ' \
# | /protonmail/vault-editor write | /protonmail/vault-editor write
# Start protonmail # Start protonmail
/protonmail/proton-bridge --noninteractive $@ /protonmail/proton-bridge --noninteractive $@