bugfix paheko

This commit is contained in:
Fanch 2024-08-08 15:55:19 +02:00
parent 5bf01b77db
commit 588ab341bc
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ COPY "dockers/paheko/config/facturation.tar.gz" ${PAHEKO_DIR}/data/plugins/
RUN mkdir ${PAHEKO_DIR}/data/plugins/facturation && tar zxvf ${PAHEKO_DIR}/data/plugins/facturation.tar.gz -C ${PAHEKO_DIR}/data/plugins/facturation && rm ${PAHEKO_DIR}/data/plugins/facturation.tar.gz
#install cron pour factory_cron.sh
RUN apt-get install cron joe rsyslog -y
RUN apt-get update && apt-get install cron joe rsyslog -y
RUN sed -i '/imklog/s/^/#/' /etc/rsyslog.conf
RUN echo "0 1 * * * cd ${PAHEKO_DIR} && ${PAHEKO_DIR}/factory_cron.sh" >> /var/spool/cron/crontabs/root
RUN echo "* * * * * cd ${PAHEKO_DIR} && ${PAHEKO_DIR}/factory_cron_emails.sh" >> /var/spool/cron/crontabs/root

View File

@ -20,6 +20,7 @@ services:
external_links:
- ${smtpServName}:${smtpHost}.${domain}
labels:
- "traefik.docker.network=pahekoNet"
- "traefik.enable=true"
- "traefik.frontend.rule=HostRegexp:{host:[a-zA-Z0-9_-]+-${pahekoHost}}.${domain}"
- "traefik.http.routers.${pahekoServName}.rule=HostRegexp(`{host:[a-zA-Z0-9_-]+-${pahekoHost}}.${domain}`)"