From f430302c77beb51fa2b0c221a0ddfb4e487f8bb6 Mon Sep 17 00:00:00 2001 From: danbai Date: Mon, 8 Jul 2024 10:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=9F=A5uuidgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/install.sh b/server/install.sh index 993ca51..f56abb9 100755 --- a/server/install.sh +++ b/server/install.sh @@ -1,4 +1,10 @@ #!/bin/bash +# 使用 command -v 检查 uuidgen 是否存在 +if ! command -v uuidgen &> /dev/null +then + echo "错误: uuidgen 未安装。请安装后继续。" + exit 1 +fi echo "欢迎使用 gpp 服务端安装脚本" read -p "输入安装路径 (默认是 /usr/local/gpp): " INSTALL_PATH # 设置默认安装路径 @@ -20,7 +26,7 @@ echo "1) shadowsocks" echo "2) socks" echo "3) vless" echo "4) hysteria2" -read -p "输入选项 (1-3): " input +read -p "输入选项 (1-4): " input PROTOCOL="vless" case $input in 1)