From 1d18f97e15699688f04da694a8b4177d8c73cf69 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Fri, 24 Apr 2026 02:34:14 +0000 Subject: update cronjob installation --- .gitignore | 1 + crond.autopeer | 3 +++ install.sh | 4 +--- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 crond.autopeer diff --git a/.gitignore b/.gitignore index 03a08c8..3fc34e2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ sqlite3.db __pycache__ .rsync-filter dn42-registry +smokeping-peer.conf diff --git a/crond.autopeer b/crond.autopeer new file mode 100644 index 0000000..72891c8 --- /dev/null +++ b/crond.autopeer @@ -0,0 +1,3 @@ +47 * * * * root git -c merge.verifysignatures=false -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" -C /opt/autopeer/dn42-registry pull +*/5 * * * * root /opt/autopeer/cronjob.py +0 * * * * root git -C /opt/autopeer pull diff --git a/install.sh b/install.sh index b1851d6..bd0ea5a 100755 --- a/install.sh +++ b/install.sh @@ -12,9 +12,7 @@ addgroup autopeer adduser --disabled-password --comment '' new git -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" clone git@git.dn42.dev:dn42/registry.git /opt/autopeer/dn42-registry -echo '47 * * * * root git -c merge.verifysignatures=false -c core.sshcommand="ssh -i /opt/autopeer/id_autopeer" -C /opt/autopeer/dn42-registry pull' >>/etc/cron.d/autopeer -echo '*/5 * * * * root /opt/autopeer/cronjob.py' >>/etc/cron.d/autopeer -echo '0 * * * * root git -C /opt/autopeer pull' >>/etc/cron.d/autopeer +ln -s /opt/autopeer/crond.autopeer /etc/cron.d/autopeer umask 0007 mkdir /opt/autopeer/db -- cgit v1.3-10-gefec