This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
protonmail-bridge-docker/entrypoint.sh
2024-04-01 20:16:08 +01:00

17 lines
353 B
Bash

#!/bin/bash
set -ex
if [[ $1 == init ]]; then
gpg --generate-key --batch /protonmail/gpgparams
pass init pass-key
pkill protonmail-bridge || true
/protonmail/proton-bridge --cli "$@"
else
socat TCP-LISTEN:25,fork TCP:127.0.0.1:1025 &
socat TCP-LISTEN:143,fork TCP:127.0.0.1:1143 &
/protonmail/proton-bridge --cli "$@"
fi