Fix write problem

This commit is contained in:
Valentin Deville 2017-03-15 16:48:14 +01:00
parent be71b0d3a9
commit f6e4425ee8
No known key found for this signature in database
GPG Key ID: F37EBA152ABA41D8

View File

@ -82,8 +82,6 @@ WORKDIR /tmp/ocs
RUN cp -R ocsreports/* /usr/share/ocsinventory-reports/ocsreports RUN cp -R ocsreports/* /usr/share/ocsinventory-reports/ocsreports
RUN chown -R www-data: /usr/share/ocsinventory-reports/
RUN bash -c 'mkdir -p /var/lib/ocsinventory-reports/{download,ipd,logs,scripts,snmp}' RUN bash -c 'mkdir -p /var/lib/ocsinventory-reports/{download,ipd,logs,scripts,snmp}'
RUN chmod -R +w /var/lib/ocsinventory-reports ;\ RUN chmod -R +w /var/lib/ocsinventory-reports ;\
@ -97,7 +95,8 @@ RUN chown www-data: /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.p
chmod 755 /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.pl ;\ chmod 755 /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.pl ;\
chmod +w /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php ;\ chmod +w /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php ;\
mkdir -p /var/log/ocsinventory-server/ ;\ mkdir -p /var/log/ocsinventory-server/ ;\
chmod +w /var/log/ocsinventory-server/ chmod +w /var/log/ocsinventory-server ;\
chown -R www-data: /usr/share/ocsinventory-reports/
COPY /conf/ocsinventory-reports.conf /etc/apache2/conf-available/ COPY /conf/ocsinventory-reports.conf /etc/apache2/conf-available/
COPY /conf/z-ocsinventory-server.conf /etc/apache2/conf-available/ COPY /conf/z-ocsinventory-server.conf /etc/apache2/conf-available/