feat(vpn): 添加 frpc 初始化脚本

- 新增 init_frpc.sh 脚本文件- 实现了检查 root 用户的功能
- 提示后续将添加拉取 frp.tar.gz 文件的逻辑
This commit is contained in:
hsc 2025-04-04 19:51:02 +08:00
parent c809542f1f
commit 0f793c906d
3 changed files with 1114 additions and 2 deletions

1103
devops/init_k3s.sh Normal file

File diff suppressed because it is too large Load Diff

10
sh/vpn/init_frpc.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# 1. 拉取frp.tar.gz
# todo 后续开发
# 检查是否为root用户
if [ $(id -u) != "0" ]; then
echo "错误请使用root用户执行此脚本"
exit 1
fi

View File

@ -1,6 +1,5 @@
#!/bin/bash
# 初始化Linux服务器脚本
# 功能1. 时钟同步配置 2. Yum加速配置 3. 系统基础优化
# 1. tailscale
# 检查是否为root用户
if [ $(id -u) != "0" ]; then