Fixed socat/ports.
This commit is contained in:
parent
f5f2d79d3b
commit
8e64d18c2b
3 changed files with 10 additions and 10 deletions
|
|
@ -4,6 +4,7 @@
|
|||
# fallback
|
||||
|
||||
USER_ID=${PUID:-9001}
|
||||
|
||||
GROUP_ID=${PGID:-$USER_ID}
|
||||
echo "Starting with UID : $USER_ID:$GROUP_ID"
|
||||
addgroup -g $GROUP_ID proton
|
||||
|
|
@ -12,4 +13,9 @@ chown -R ${USER_ID}:${GROUP_ID} /var/lib/proton
|
|||
|
||||
export HOME=/var/lib/proton
|
||||
|
||||
# socat will make the conn appear to come from 127.0.0.1
|
||||
# ProtonMail Bridge currently expects that.
|
||||
socat TCP-LISTEN:$SMTP_PORT,fork TCP:127.0.0.1:1025 &
|
||||
socat TCP-LISTEN:$IMAP_PORT,fork TCP:127.0.0.1:1143 &
|
||||
|
||||
exec /sbin/su-exec proton "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue