Fix ocsinventory log directory permissions

This commit is contained in:
codeurimpulsif 2019-08-07 16:56:52 +02:00
parent cc59facefb
commit 421267bb45
3 changed files with 6 additions and 3 deletions

View File

@ -84,7 +84,8 @@ RUN cp -R ocsreports/* /usr/share/ocsinventory-reports/ocsreports ;\
chmod 755 /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.pl ;\
chmod +w /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php ;\
mkdir -p /var/log/ocsinventory-server/ ;\
chmod +w /var/log/ocsinventory-server ;\
chmod +w /var/log/ocsinventory-server/ ;\
chown -R www-data: /var/log/ocsinventory-server ;\
chown -R www-data: /usr/share/ocsinventory-reports/
COPY /conf/ocsinventory-reports.conf /conf/z-ocsinventory-server.conf /etc/apache2/conf-available/

View File

@ -97,7 +97,8 @@ RUN chown www-data: /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.p
chmod 755 /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.pl ;\
chmod +w /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php ;\
mkdir -p /var/log/ocsinventory-server/ ;\
chmod +w /var/log/ocsinventory-server/
chmod +w /var/log/ocsinventory-server/ ;\
chown -R www-data: /var/log/ocsinventory-server
COPY /conf/ocsinventory-reports.conf /etc/apache2/conf-available/
COPY /conf/z-ocsinventory-server.conf /etc/apache2/conf-available/

View File

@ -89,7 +89,8 @@ RUN cp -R ocsreports/* /usr/share/ocsinventory-reports/ocsreports ;\
chown www-data: /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.pl ;\
chmod 755 /usr/share/ocsinventory-reports/ocsreports/ipdiscover-util.pl ;\
mkdir -p /var/log/ocsinventory-server/ ;\
chmod +w /var/log/ocsinventory-server ;\
chmod +w /var/log/ocsinventory-server/ ;\
chown -R www-data: /var/log/ocsinventory-server ;\
chown -R www-data: /usr/share/ocsinventory-reports/
COPY ./dbconfig.inc.php /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php