25 Commits

Author SHA1 Message Date
MVSCODE
f0cb234a8c 刪除文件 v0.35.0/.keep 2021-01-25 19:19:21 +08:00
MVSCODE
a0e6b8cbdd update install-frps.sh. 2021-01-24 14:25:32 +08:00
MVSCODE
68ea04f47d update install-frps.sh. 2021-01-24 14:24:27 +08:00
MVSCODE
d148363127 update README.md. 2021-01-24 14:23:05 +08:00
MVSCODE
4f54babaa1 update install-frps.sh. 2021-01-24 14:21:12 +08:00
MVSCODE
a95b84cdc2 update install-frps.sh. 2021-01-24 14:04:28 +08:00
MVSCODE
f7abbc828b update install-frps.sh. 2021-01-24 14:03:24 +08:00
MVSCODE
52cfd09e92 update install-frps.sh. 2021-01-24 14:02:09 +08:00
MVSCODE
fcdd0facaa update install-frps.sh. 2021-01-24 13:57:51 +08:00
MVSCODE
63b10bb243 update install-frps.sh. 2021-01-24 13:56:14 +08:00
MVSCODE
a5eb093306 update install-frps.sh. 2021-01-24 13:54:23 +08:00
MVSCODE
7eb2175e38 update install-frps.sh. 2021-01-24 13:52:24 +08:00
MVSCODE
41a661c1f7 update install-frps.sh. 2021-01-24 13:48:37 +08:00
MVSCODE
c28e85f4ec update install-frps.sh. 2021-01-24 13:41:31 +08:00
MVSCODE
3ef43f35ac 新建 v0.35.0 2021-01-24 13:38:42 +08:00
MVSCODE
fd73eb8a4f update install-frps.sh. 2021-01-24 13:37:56 +08:00
MVSCODE
a045b2a774 update install-frps.sh. 2021-01-24 13:34:47 +08:00
MVSCODE
9593e3e3d7 update install-frps.sh. 2021-01-24 13:34:03 +08:00
MVSCODE
b47c7ed9fd update install-frps.sh. 2021-01-24 13:33:27 +08:00
MVSCODE
2497cd46cf update install-frps.sh. 2021-01-24 13:32:04 +08:00
MVSCODE
05b5486f2e update install-frps.sh. 2021-01-24 13:28:59 +08:00
MVSCODE
967d11c07c update install-frps.sh. 2021-01-24 13:28:01 +08:00
MVSCODE
6318d50635 update install-frps.sh. 2021-01-24 13:25:44 +08:00
MVSCODE
204c853e37 update README.md. 2021-01-24 13:24:24 +08:00
MVSCODE
0e61c169bd update install-frps.sh. 2021-01-24 13:23:38 +08:00
2 changed files with 10 additions and 9 deletions

View File

@@ -17,9 +17,9 @@ wget https://raw.githubusercontent.com/MvsCode/frps-onekey/master/install-frps.s
chmod 700 ./install-frps.sh
./install-frps.sh install
```
#### Aliyun
#### Gitee
```Bash
wget https://code.aliyun.com/MvsCode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
wget https://gitee.com/MvsCode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install
```

View File

@@ -3,9 +3,10 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
###export###
export PATH
export FRPS_VER=0.35.0
export FRPS_INIT="https://raw.githubusercontent.com/MvsCode/frps-onekey/master/frps.init"
export FRPS_INIT="https://gitee.com/MvsCode/frps-onekey/raw/master/frps.init"
export aliyun_download_url="https://code.aliyun.com/mvscode/frps-onekey/raw/master"
export github_download_url="https://github.com/fatedier/frp/releases/download"
export gitee_download_url="https://gitee.com/mvscode/frps-onekey/attach_files/597393/download"
#======================================================================
# System Required: CentOS Debian Ubuntu or Fedora(32bit/64bit)
# Description: A tool to auto-compile & install frps on Linux
@@ -13,12 +14,12 @@ export github_download_url="https://github.com/fatedier/frp/releases/download"
# Mender : MvsCode
#======================================================================
program_name="frps"
version="210120"
version="210124"
str_program_dir="/usr/local/${program_name}"
program_init="/etc/init.d/${program_name}"
program_config_file="frps.ini"
ver_file="/tmp/.frp_ver.sh"
str_install_shell="https://raw.githubusercontent.com/MvsCode/frps-onekey/master/install-frps.sh"
str_install_shell="https://gitee.com/MvsCode/frps-onekey/raw/master/install-frps.sh"
shell_update(){
fun_clangcn "clear"
echo "Check updates for shell..."
@@ -172,13 +173,13 @@ fun_getServer(){
def_server_url="github"
echo ""
echo -e "Please select ${program_name} download url:"
echo -e "[1].aliyun "
echo -e "[1].gitee "
echo -e "[2].github (default)"
read -e -p "Enter your choice (1, 2 or exit. default [${def_server_url}]): " set_server_url
[ -z "${set_server_url}" ] && set_server_url="${def_server_url}"
case "${set_server_url}" in
1|[Aa][Ll][Ii][Yy][Uu][Nn])
program_download_url=${aliyun_download_url}
1|[Gi][Ii][Tt][Ee][Ee])
program_download_url=${gitee_download_url}
;;
2|[Gg][Ii][Tt][Hh][Uu][Bb])
program_download_url=${github_download_url}
@@ -187,7 +188,7 @@ fun_getServer(){
exit 1
;;
*)
program_download_url=${aliyun_download_url}
program_download_url=${gitee_download_url}
;;
esac
echo "-----------------------------------"