fix sendtelegram.config path
This commit is contained in:
parent
1f8607521f
commit
4444a6c44a
|
@ -1,8 +1,8 @@
|
|||
#! /bin/sh
|
||||
API_URL="$(grep "API_URL=" | cut -d= -f2)"
|
||||
SILENCE="$(grep "SILENCE=" | cut -d= -f2)"
|
||||
CHAT_ID="$(grep "CHAT_ID=" | cut -d= -f2)"
|
||||
THRD_ID="$(grep "THRD_ID=" | cut -d= -f2)"
|
||||
API_URL="$(grep "API_URL=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
SILENCE="$(grep "SILENCE=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
CHAT_ID="$(grep "CHAT_ID=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
THRD_ID="$(grep "THRD_ID=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
TXT_MSG="[Authorization] $(cat /etc/hostname):
|
||||
$(w -h)"
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
### END INIT INFO
|
||||
|
||||
start() {
|
||||
API_URL="$(grep "API_URL=" | cut -d= -f2)"
|
||||
SILENCE="$(grep "SILENCE=" | cut -d= -f2)"
|
||||
CHAT_ID="$(grep "CHAT_ID=" | cut -d= -f2)"
|
||||
THRD_ID="$(grep "THRD_ID=" | cut -d= -f2)"
|
||||
API_URL="$(grep "API_URL=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
SILENCE="$(grep "SILENCE=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
CHAT_ID="$(grep "CHAT_ID=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
THRD_ID="$(grep "THRD_ID=" /usr/local/bin/sendtelegram.config | cut -d= -f2)"
|
||||
TXT_MSG="[System States] $(cat /etc/hostname): computer has been rebooted"
|
||||
|
||||
sleep 15
|
||||
|
|
Loading…
Reference in New Issue
Block a user