mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
docker/chatmail-init.sh: disable port check its more hassle than its worth
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
export CHATMAIL_INI="${CHATMAIL_INI:-/etc/chatmail/chatmail.ini}"
|
export CHATMAIL_INI="${CHATMAIL_INI:-/etc/chatmail/chatmail.ini}"
|
||||||
export CHATMAIL_NOSYSCTL=True
|
export CHATMAIL_NOSYSCTL=True
|
||||||
|
export CHATMAIL_NOPORTCHECK=True
|
||||||
|
|
||||||
CMDEPLOY=/opt/cmdeploy/bin/cmdeploy
|
CMDEPLOY=/opt/cmdeploy/bin/cmdeploy
|
||||||
|
|
||||||
@@ -63,17 +64,6 @@ if [ -z "${CMDEPLOY_STAGES:-}" ] \
|
|||||||
&& [ "$(cat "$FINGERPRINT_FILE")" = "$current_fp" ]; then
|
&& [ "$(cat "$FINGERPRINT_FILE")" = "$current_fp" ]; then
|
||||||
echo "[INFO] No changes detected ($current_fp), skipping deploy."
|
echo "[INFO] No changes detected ($current_fp), skipping deploy."
|
||||||
else
|
else
|
||||||
# Stop chatmail services so the port check sees a clean state as
|
|
||||||
# ss -p inside Docker can't identify processes, causing false
|
|
||||||
# "port occupied" failures
|
|
||||||
echo "[INFO] Stopping services for clean port check..."
|
|
||||||
systemctl stop postfix dovecot nginx opendkim unbound \
|
|
||||||
filtermail doveauth chatmail-metadata iroh-relay mtail fcgiwrap 2>/dev/null || true
|
|
||||||
|
|
||||||
# # Show listening ports before deploy (diagnostic for port-check failures)
|
|
||||||
# echo "[DEBUG] Listening ports before deploy:"
|
|
||||||
# ss -lptn | while IFS= read -r line; do echo " $line"; done
|
|
||||||
|
|
||||||
export CMDEPLOY_STAGES="${CMDEPLOY_STAGES:-configure,activate}"
|
export CMDEPLOY_STAGES="${CMDEPLOY_STAGES:-configure,activate}"
|
||||||
|
|
||||||
# Skip DNS check when MAIL_DOMAIN is a bare IP address
|
# Skip DNS check when MAIL_DOMAIN is a bare IP address
|
||||||
|
|||||||
Reference in New Issue
Block a user