mirror of
https://github.com/curry-he/Serv00_auto_script.git
synced 2026-06-11 21:01:39 +08:00
52 lines
2.5 KiB
Markdown
52 lines
2.5 KiB
Markdown
# Serv00 - 自动续期脚本,Fork自bg8ixz/bg8ixz/Serv00_auto_script
|
||
|
||
|
||
## 当前脚本
|
||
| 脚本名称 | 用途 |备注 |
|
||
| :------------: | :------------: | :------------: |
|
||
|Auto_connect_SSH.py|自动SSH登录以续期||
|
||
|alist_freebsd_update.py|自动从uubulb/alist-freebsd拉取最新版本更新||
|
||
|Auto_connect_SSH-WeCom.py|企业微信推送方式|需要企业微信机器人Webhook Key
|
||
|Auto_connect_SSH-TG.py|TG推送方式|需要BOT_TOKEN和CHAT_ID
|
||
|Auto_connect_SSH-PushPLus.py|推送方式|需要PushPlus Token
|
||
|
||
# 自动续期脚本说明
|
||
## 说明
|
||
bg8ixz/Serv00_auto_script基于[LINUX DO](https://linux.do)论坛佬友`maohai`的[脚本](https://linux.do/t/topic/66483/15)进行修改,在其基础上增加了`发送通知`、以及`运行日志`功能。本项目基于bg8ixz/Serv00_auto_script的脚本增加tg和pushplus推送方式,并通过sh脚本设置变量
|
||
|
||
|
||
## 发送说明
|
||
| 主机状态/设置条件 | 说明 |发送内容 |执行动作 |
|
||
| :------------: | :------------: | :------------: | :------------: |
|
||
| 200 | 正常 |不发送|无|
|
||
| 502| 机子凉了 |服务不可用|通过SSH执行PM2命令|
|
||
| [Errno 1] Address family for hostname not supported| 解析凉了 |解析失败|无|
|
||
| 自定义日期 | 固定日启动连接 |每月固定SSH连接提醒|连接SSH|
|
||
|
||
## 使用方法
|
||
|
||
|
||
进入domains目录并执行一键脚本:
|
||
```shell
|
||
cd domains
|
||
curl -O https://raw.githubusercontent.com/curry-he/Serv00_auto_script/master/Serv00-Renew.sh && chmod +x Serv00-Renew.sh && ./Serv00-Renew.sh
|
||
|
||
```
|
||
#### 参考设置图
|
||

|
||
|
||
# Alist自动更新脚本说明
|
||
将脚本放到`domains`目录下你的 `Alist` 存储路径中,使用`chmod +x alist_freebsd_update.py`给`alist_freebsd_update.py`添加可执行权限。
|
||
然后自己到控制台创建一个定时任务。
|
||
#### 运行效果图
|
||

|
||

|
||

|
||
|
||
## 参考来源
|
||
| 名称 |来源|地址|
|
||
| :------------: | :------------: | :------------: |
|
||
|Saika|Github|https://github.com/k0baya|
|
||
|Eric Lee|Github|https://github.com/giturass|
|
||
|maohai|LINUX DO|https://linux.do/t/topic/66483/15|
|