Remove renew_ssl_cert CRON script (#25)

The certbot package comes with its own.
This commit is contained in:
Helge Rausch
2022-12-05 11:09:12 +01:00
committed by GitHub
parent 753f5b9ca8
commit 853eea468e
3 changed files with 1 additions and 5 deletions

View File

@@ -21,7 +21,6 @@ RUN sed -i "s/# gzip_http/gzip_http/" /etc/nginx/nginx.conf
RUN rm /etc/nginx/sites-enabled/default
RUN rm -f /etc/service/nginx/down
COPY renew_ssl_cert.cron /etc/cron.d/renew_ssl_cert
COPY db_migrate.sh /etc/my_init.d/90_db_migrate.sh
# If SNPR_REV changed, re-evaluate from here.

View File

@@ -1,3 +0,0 @@
MAILTO=''
0 0 * * * root /usr/bin/certbot renew --nginx 2>&1 | xargs echo "$(date):" >> /var/log/renew_ssl_cert.log

View File

@@ -4,7 +4,7 @@ RUN mkdir /var/run/sidekiq
RUN chown app:app /var/run/sidekiq
RUN touch /etc/service/nginx/down
COPY sidekiq-run /etc/service/sidekiq/run
RUN rm /etc/cron.d/renew_ssl_cert
RUN rm /etc/cron.d/certbot
USER app
RUN bash -l -c 'bundle exec whenever --update-crontab'
RUN bash -l bin/build_native_recommendify