Skip to content

Commit

Permalink
检查uuidgen
Browse files Browse the repository at this point in the history
  • Loading branch information
danbai225 committed Jul 8, 2024
1 parent 81fea9e commit f430302
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/install.sh
Original file line number Diff line number Diff line change
@@ -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
# 设置默认安装路径
Expand All @@ -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)
Expand Down

0 comments on commit f430302

Please sign in to comment.