Script-Collected/sh/vpn/init_vpn.sh

14 lines
229 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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
# 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