&&
This commit is contained in:
parent
e615fbbb4a
commit
9827a69090
1 changed files with 4 additions and 4 deletions
|
@ -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) && \
|
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/^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) && \
|
(sed -i 's/Order allow,deny.*/Allow from all/g' /etc/apache2/sites-available/000-default.conf) && \
|
||||||
(mkdir -p /var/run/munin && \
|
(mkdir -p /var/run/munin && \
|
||||||
chown -R munin:munin /var/run/munin) && \
|
chown -R munin:munin /var/run/munin) && \
|
||||||
(chfn -f 'munin' root) && \
|
(chfn -f 'munin' root) && \
|
||||||
(/usr/sbin/a2enmod fcgid) \
|
(/usr/sbin/a2enmod fcgid) && \
|
||||||
rm -rf /etc/munin/plugins \
|
rm -rf /etc/munin/plugins && \
|
||||||
chmod +x /etc/munin/plugins/munin_stats \
|
chmod +x /etc/munin/plugins/munin_stats && \
|
||||||
chmod +x /etc/munin/plugins/munin_update
|
chmod +x /etc/munin/plugins/munin_update
|
||||||
|
|
||||||
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
COPY 000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||||
|
|
Reference in a new issue