This commit is contained in:
Michael Grote 2022-08-06 20:30:27 +02:00
parent a0734299f3
commit f09225a776

View file

@ -21,14 +21,14 @@ RUN apt-get update && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
RUN (cp /etc/munin/apache24.conf /etc/apache2/sites-available/000-default.conf) RUN (cp /etc/munin/apache24.conf /etc/apache2/sites-available/000-default.conf) && \
RUN (sed -i 's/^Alias.*/Alias \/ \/var\/cache\/munin\/www\//g' /etc/apache2/sites-available/000-default.conf) (sed -i 's/^Alias.*/Alias \/ \/var\/cache\/munin\/www\//g' /etc/apache2/sites-available/000-default.conf) && \
RUN (sed -i 's/Allow from .*/Satisfy Any/g' /etc/apache2/sites-available/000-default.conf) (sed -i 's/Allow from .*/Satisfy Any/g' /etc/apache2/sites-available/000-default.conf) && \
RUN (sed -i 's/Order allow,deny.*/Allow from all/g' /etc/apache2/sites-available/000-default.conf) (sed -i 's/Order allow,deny.*/Allow from all/g' /etc/apache2/sites-available/000-default.conf) && \
RUN (mkdir -p /var/run/munin && chown -R munin:munin /var/run/munin) (mkdir -p /var/run/munin && \
chown -R munin:munin /var/run/munin) && \
RUN (chfn -f 'munin' root) (chfn -f 'munin' root) && \
RUN (/usr/sbin/a2enmod fcgid) (/usr/sbin/a2enmod fcgid)
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
COPY logrotate-munin /etc/logrotate.d/munin COPY logrotate-munin /etc/logrotate.d/munin