更新 'install-sakurafrp-world.sh'

master
Akkariin Meiko 2020-10-10 23:36:01 +08:00
parent 2857146b85
commit 4f2fd5d2b2
1 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ main() {
echo -e "+--------------------------------------+"
echo -e "| Sakura Frp Server Install Script |"
echo -e "+--------------------------------------+"
echo -e "| https://www.natfrp.org/ |"
echo -e "| https://www.natfrp.cn/ |"
echo -e "+--------------------------------------+"
echo -e ""
read -p "请输入服务器节点名称 > " server_name
@ -49,15 +49,15 @@ main() {
echo -e "${COLOR_BLUE}正在下载配置文件...${COLOR_END}"
[ ! -d /usr/local/frps/ ] && mkdir -p /usr/local/frps/
cd /usr/local/frps/
wget --no-check-certificate "https://www.natfrp.org/api/build.php?action=install&port=${bind_port}&user=${admin_user}&pass=${admin_pass}&http=${http_port}&https=${https_port}&token=${token}" -qO frps.ini
wget --no-check-certificate "https://www.natfrp.cn/api/build.php?action=install&port=${bind_port}&user=${admin_user}&pass=${admin_pass}&http=${http_port}&https=${https_port}&token=${token}" -qO frps.ini
echo -e "${COLOR_GREEN}配置文件下载完成!${COLOR_END}"
echo -e ""
echo -e "${COLOR_BLUE}正在下载服务端主体...${COLOR_END}"
wget --no-check-certificate "https://www.natfrp.org/api/build.php?name=${server_name}" -qO frps
wget --no-check-certificate "https://www.natfrp.cn/api/build.php?name=${server_name}" -qO frps
echo -e "${COLOR_GREEN}服务端主体下载完成!${COLOR_END}"
echo -e ""
echo -e "${COLOR_BLUE}正在下载管理脚本...${COLOR_END}"
wget --no-check-certificate "https://www.natfrp.org/api/build.php?action=init" -qO /etc/init.d/frps
wget --no-check-certificate "https://www.natfrp.cn/api/build.php?action=init" -qO /etc/init.d/frps
echo -e "${COLOR_GREEN}管理脚本下载完成!${COLOR_END}"
echo -e ""
echo -e "${COLOR_BLUE}正在设置可执行权限...${COLOR_END}"
@ -81,7 +81,7 @@ main() {
echo -e " 停止:${COLOR_RED}/etc/init.d/frps stop${COLOR_END}"
echo -e " 重启:${COLOR_YELOW}/etc/init.d/frps restart${COLOR_END}"
echo -e ""
echo -e "Sakura Frp: https://www.natfrp.org/"
echo -e "Sakura Frp: https://www.natfrp.cn/"
echo -e ""
}
main