From 36ef2b48db05a8b88e3fdabfcf1a877ec34584eb Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 24 Nov 2024 03:07:54 +0300 Subject: [PATCH] add autoupdate --- playbook.yml | 2 +- update-and-run-checker.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 update-and-run-checker.sh diff --git a/playbook.yml b/playbook.yml index 080b561..e352994 100644 --- a/playbook.yml +++ b/playbook.yml @@ -337,7 +337,7 @@ Type=simple User=root 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 RestartSec=1800 diff --git a/update-and-run-checker.sh b/update-and-run-checker.sh new file mode 100644 index 0000000..7ece524 --- /dev/null +++ b/update-and-run-checker.sh @@ -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