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
parent f027afdd28
commit e1ca74ef9f

View File

@@ -1,7 +1,7 @@
#!/bin/bash
set -eo pipefail
unlink /etc/nginx/sites-enabled/default
unlink /etc/nginx/sites-enabled/default || true
if [ "${USE_FOREIGN_CERT_MANAGER,,}" == "true" ]; then
if [ ! -f "$PATH_TO_SSL/fullchain" ]; then