This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |