fix unlink if default nginx conf is not exist

- https://github.com/chatmail/relay/pull/614#discussion_r2297828830
This commit is contained in:
Keonik1
2025-08-25 22:07:40 +03:00
committed by missytake
parent 514682a093
commit a331828301

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -eo pipefail
unlink /etc/nginx/sites-enabled/default
unlink /etc/nginx/sites-enabled/default || true
SETUP_CHATMAIL_SERVICE_PATH="${SETUP_CHATMAIL_SERVICE_PATH:-/lib/systemd/system/setup_chatmail.service}"