modified: serv_nginx/certbot/Dockerfile
Change checking crone for sh
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
FROM certbot/certbot
|
||||
|
||||
# Установка зависимостей и проверка наличия cron
|
||||
RUN apt-get update && \
|
||||
# Проверяем, установлен ли cron
|
||||
if ! command -v crond > /dev/null 2>&1; then \
|
||||
RUN if ! which crond > /dev/null 2>&1; then \
|
||||
echo "Cron not found. Installing cron..."; \
|
||||
apt-get install -y cron; \
|
||||
apt-get update && apt-get install -y cron; \
|
||||
else \
|
||||
echo "Cron is already installed."; \
|
||||
fi && \
|
||||
|
||||
Reference in New Issue
Block a user