|
|
|
|
@@ -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 "-----------------------------------"
|
|
|
|
|
|