To install this script, run this command:
bash <(curl -s https://raw.githubusercontent.com/daghlani/login_checker/main/login_checker_installer.sh)
You must first change token
, chat_id
and server_name
of you server.
- login_checker.sh
Change this values:
SRV_NAME=<server_name>
CHID=<chat_id>
TKN=<token>
- login_checker.service
Now change the location of your script in this file
sudo vi /etc/systemd/system/login_checker.service
Now change this section:
ExecStart=bash /<path_to_script>/login_checker.sh
After config the files, to start the script you can run this commands:
sudo systemctl enable login_checker
sudo systemctl start login_checker