modified: scripts/menu.sh
modified: scripts/start.sh
This commit is contained in:
@@ -128,6 +128,9 @@ logger() { #日志工具
|
||||
content="{\"token\":\"${push_PP}\",\"title\":\"ShellCrash日志推送\",\"content\":\"$log_text\"}"
|
||||
webpush "$url" "$content" &
|
||||
}
|
||||
[ -n "$push_SynoChat" ] && {
|
||||
curl -X POST "${push_ChatURL}/webapi/entry.cgi?api=SYNO.Chat.External&method=chatbot&version=2&token=${push_ChatTOKEN}" -H 'content-Type: application/json' -d "payload={\"text\":\"${log_text}\", \"user_ids\":[${push_ChatUSERID}]}" >/dev/null 2>&1
|
||||
}
|
||||
} &
|
||||
}
|
||||
croncmd() { #定时任务工具
|
||||
|
||||
Reference in New Issue
Block a user