From 391859ded4bd428552a77b80d7585ada436ac388 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 4 Apr 2020 20:33:08 +0200 Subject: [PATCH] Add acme.sh cron job --- apk/vmmgr | 2 +- vm/etc/periodic/daily/acme.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 vm/etc/periodic/daily/acme.sh diff --git a/apk/vmmgr b/apk/vmmgr index 43f55e5..3b9cbe6 160000 --- a/apk/vmmgr +++ b/apk/vmmgr @@ -1 +1 @@ -Subproject commit 43f55e59172836e8f7a1390fac82a1070b4660c4 +Subproject commit 3b9cbe61b326d2ac829305996b6c2dd3f0e6e635 diff --git a/vm/etc/periodic/daily/acme.sh b/vm/etc/periodic/daily/acme.sh new file mode 100644 index 0000000..61b9db2 --- /dev/null +++ b/vm/etc/periodic/daily/acme.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +# Sleep randomly up to 1hr to avoid peak on ACME server +/bin/sleep $(/usr/bin/shuf -i 60-3600 -n 1) +/usr/bin/acme.sh --home /etc/acme.sh.d --cron >/dev/null