From 72b71bf27c0f3c5ab1806e35898206634343553f Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 14 Oct 2024 12:31:05 -0700 Subject: [PATCH] update path for certbot to be in /usr/local/bin --- etc/cron.d/certbot | 2 +- install.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/cron.d/certbot b/etc/cron.d/certbot index 600c8a4..6da6f21 100644 --- a/etc/cron.d/certbot +++ b/etc/cron.d/certbot @@ -4,7 +4,7 @@ SHELL=/bin/sh PATH=/opt/certbot/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # Renew certs twice daily -0 0,12 * * * root test -x /opt/certbot/bin/certbot && test -L /usr/bin/certbot && perl -e 'sleep int(rand(43200))' && certbot -q renew --no-random-sleep-on-renew +0 0,12 * * * root test -x /opt/certbot/bin/certbot && test -L /usr/local/bin/certbot && perl -e 'sleep int(rand(43200))' && certbot -q renew --no-random-sleep-on-renew # Upgrade certbot monthly 43 0 1 * * root /opt/certbot/bin/pip install --upgrade --quiet pip diff --git a/install.sh b/install.sh index 8036fc0..a6a220d 100755 --- a/install.sh +++ b/install.sh @@ -40,7 +40,8 @@ DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip python3-wheel pyth python3 -m venv /opt/certbot /opt/certbot/bin/pip install --upgrade pip /opt/certbot/bin/pip install certbot certbot-apache -ln -s /opt/certbot/bin/certbot /usr/bin/certbot +ln -s /opt/certbot/bin/certbot /usr/local/bin/certbot +ln -s certbot /usr/local/bin/letsencrypt cp etc/cron.d/certbot /etc/cron.d/certbot chmod 644 /etc/cron.d/certbot