ระบบแจ้งเตือนการ Login เข้า Server ผ่าน Line Notify

แก้ไขไฟล์.bash_profile

#vi /root/.bash_profile

ตามนี้


if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
curl -X POST -H 'Authorization: Bearer token ' -F 'message=IP login SSH' https://notify-api.line.me/api/notify
PATH=$PATH:$HOME/bin
export PATH