added update message to my toy

This commit is contained in:
2023-05-06 16:56:25 +03:00
parent 60482bd206
commit 03dd89d530

View File

@@ -135,6 +135,11 @@ EOF
sudo apt install ntfy sudo apt install ntfy
sudo systemctl enable ntfy sudo systemctl enable ntfy
sudo systemctl start ntfy sudo systemctl start ntfy
sudo tee /Scripts/rebooting <<EOF
#!/bin/bash
ntfy pub -t "started up Libre server (The TOY-server)" -m "$(date)" https://ntfy.d.metallum.eu.org/ServerState
EOF
sudo chmod a+x /Scripts/rebooting
tee /home/saret/.ssh/config <<EOF tee /home/saret/.ssh/config <<EOF
Host GitHub Host GitHub
Hostname ssh.github.com Hostname ssh.github.com
@@ -210,6 +215,7 @@ EOF
# m h dom mon dow command # m h dom mon dow command
0 4 * * * /Scripts/update_data 0 4 * * * /Scripts/update_data
@reboot /Scripts/rebooting
EOF EOF
sudo crontab /nan sudo crontab /nan
cat <<EOF >> .zshrc cat <<EOF >> .zshrc