This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 初始化Linux服务器脚本
# 功能:1. 时钟同步配置 2. Yum加速配置 3. 系统基础优化
# 检查是否为root用户
if [ $(id -u) != "0" ]; then
echo "错误:请使用root用户执行此脚本"
exit 1
fi
echo 'welcom init vpn'
curl -fsSL https://tailscale.com/install.sh | sh