123456789101112131415161718192021222324252627282930313233 |
- #!/usr/bin/env bash
- PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
- export PATH
- # fonts color
- Green="\033[32m"
- Red="\033[31m"
- Yellow="\033[33m"
- GreenBG="\033[42;37m"
- RedBG="\033[41;37m"
- Font="\033[0m"
- # fonts color
- # variable
- WORK_PATH=$(dirname $(readlink -f $0))
- FRP_NAME=frps
- FRP_VERSION=0.51.3
- FRP_PATH=/usr/local/frp
- # 停止frpc
- sudo systemctl stop ${FRP_NAME}
- sudo systemctl disable ${FRP_NAME}
- # 删除frpc
- rm -rf ${FRP_PATH}
- # 删除frpc.service
- rm -rf /lib/systemd/system/${FRP_NAME}.service
- sudo systemctl daemon-reload
- # 删除本文件
- rm -rf ${FRP_NAME}_linux_uninstall.sh
- echo -e "${Green}============================${Font}"
- echo -e "${Green}卸载成功,相关文件已清理完毕!${Font}"
- echo -e "${Green}============================${Font}"
|