This commit is contained in:
Michael Grote 2023-04-16 15:11:02 +02:00
parent e615fbbb4a
commit 9827a69090

View file

@ -27,14 +27,14 @@ COPY munin_update /etc/munin/plugins/munin_update
RUN (cp /etc/munin/apache24.conf /etc/apache2/sites-available/000-default.conf) && \
(sed -i 's/^Alias.*/Alias \/ \/var\/cache\/munin\/www\//g' /etc/apache2/sites-available/000-default.conf) && \
(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) && \
(sed -i 's/Order allow,deny.*/Allow from all/g' /etc/apache2/sites-available/000-default.conf) && \
(mkdir -p /var/run/munin && \
chown -R munin:munin /var/run/munin) && \
(chfn -f 'munin' root) && \
(/usr/sbin/a2enmod fcgid) \
rm -rf /etc/munin/plugins \
chmod +x /etc/munin/plugins/munin_stats \
(/usr/sbin/a2enmod fcgid) && \
rm -rf /etc/munin/plugins && \
chmod +x /etc/munin/plugins/munin_stats && \
chmod +x /etc/munin/plugins/munin_update
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf