feat: 调整

This commit is contained in:
caiyuchao
2025-09-28 18:37:46 +08:00
parent 1dfa318a7d
commit 91ef7e75d9
3 changed files with 15 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
# 设置当前服务的IP地址或域名用于邮箱的跳转地址、附件的存取地址等
# 设置当前服务的IP地址或域名用于邮箱的跳转地址、附件的存取地址等
agt.domain=http://192.168.9.50

View File

@@ -2,6 +2,12 @@
echo "[INFO] 开始重启服务..."
./shutdown.sh
# ==== 检查 root 权限 ====
if [ "$(id -u)" -ne 0 ]; then
echo "请使用 root 权限运行此脚本"
exit 1
fi
./start.sh
sudo ./shutdown.sh
sudo ./start.sh

View File

@@ -2,6 +2,12 @@
COMPOSE_FILE="../docker/docker-compose.yml"
# ==== 检查 root 权限 ====
if [ "$(id -u)" -ne 0 ]; then
echo "请使用 root 权限运行此脚本"
exit 1
fi
echo "[INFO] 开始关闭服务..."
# ==== 关闭服务 ====
if [ -f "$COMPOSE_FILE" ]; then