fix: allow local object storage deployment

This commit is contained in:
hectorzhao
2026-07-07 15:17:26 +08:00
parent 994dadb84e
commit 5a856e0b84
3 changed files with 23 additions and 4 deletions
+8 -2
View File
@@ -40,8 +40,14 @@ chmod 600 "$ADMIN_CREDENTIAL_FILE" || true
echo "[deploy] Restarting services"
systemctl daemon-reload
systemctl enable --now cmpp-minio cmpp-api cmpp-gateway nginx
systemctl restart cmpp-minio
if [[ "${OBJECT_STORAGE_DRIVER:-minio}" == "local" ]]; then
systemctl disable --now cmpp-minio 2>/dev/null || true
systemctl enable --now cmpp-api cmpp-gateway nginx
else
systemctl enable --now cmpp-minio
systemctl restart cmpp-minio
systemctl enable --now cmpp-api cmpp-gateway nginx
fi
systemctl restart cmpp-api
systemctl restart cmpp-gateway
systemctl restart nginx