Skip to content

Instantly share code, notes, and snippets.

View xiaozhang5438's full-sized avatar

xiaozhang5438

View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
# Mailcow 一键安装脚本(Ubuntu 22.x)
# 使用方法:
# bash <(curl -s https://raw.githubusercontent.com/<你的用户名>/<仓库名>/main/install.sh) mail.example.com
DOMAIN="${1:-}"
if [[ -z "$DOMAIN" ]]; then
echo "用法: $0 mail.example.com"