#!/bin/bash # 1. tailscale # 检查是否为root用户 if [ $(id -u) != "0" ]; then echo "错误:请使用root用户执行此脚本" exit 1 fi echo 'welcom init vpn' curl -fsSL https://tailscale.com/install.sh | sh