add docker image check and update functionality to rotate.py

This commit is contained in:
vvzvlad
2025-08-02 01:15:49 +03:00
parent 3d07dc47ed
commit ee59511e5d
2 changed files with 97 additions and 2 deletions

7
rotate/run.sh Normal file
View File

@ -0,0 +1,7 @@
curl https://gitea.vvzvlad.xyz/vvzvlad/nexus/raw/branch/main/rotate/rotate.py?token=7b58d730732f07e90a88169a63531d96bfc0fbbd -o rotate.py;
curl https://gitea.vvzvlad.xyz/vvzvlad/nexus/raw/branch/main/rotate/grist.json?token=7b58d730732f07e90a88169a63531d96bfc0fbbd -o grist.json;
curl https://gitea.vvzvlad.xyz/vvzvlad/nexus/raw/branch/main/rotate/requirements.txt?token=7b58d730732f07e90a88169a63531d96bfc0fbbd -o requirements.txt;
pip3 install -r requirements.txt --break-system-packages;
docker pull nexusxyz/nexus-cli:latest
screen -S rotate -m python3 rotate.py