add autoupdate

This commit is contained in:
vvzvlad 2024-11-24 03:07:54 +03:00
parent 0d0abc2c9d
commit 36ef2b48db
2 changed files with 5 additions and 1 deletions

View File

@ -337,7 +337,7 @@
Type=simple Type=simple
User=root User=root
WorkingDirectory={{ ansible_env.HOME }}/node WorkingDirectory={{ ansible_env.HOME }}/node
ExecStart=/usr/bin/python3 {{ ansible_env.HOME }}/node/checker.py ExecStart=/usr/bin/bash {{ ansible_env.HOME }}/node/update-and-run-checker.sh
Restart=always Restart=always
RestartSec=1800 RestartSec=1800

View File

@ -0,0 +1,4 @@
#!/bin/bash
curl -o /root/node/checker.py https://gitea.vvzvlad.xyz/vvzvlad/nillion/raw/branch/main/checker.py
python3 /root/node/checker.py