From 8638ad8a1ff2ca2ca24fdea297a9ccacb0598d7b Mon Sep 17 00:00:00 2001 From: Y0plait <52579169+Y0plait@users.noreply.github.com> Date: Thu, 24 Oct 2024 20:08:13 +0200 Subject: [PATCH] Update 10-com-server.sh Add quick and dirty fix for https://github.com/OCSInventory-NG/OCSInventory-Docker-Stack/issues/16 Add a sed replacement --- 2.12.3/docker-entrypoint.d/10-com-server.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/2.12.3/docker-entrypoint.d/10-com-server.sh b/2.12.3/docker-entrypoint.d/10-com-server.sh index 648f4a3..73aa399 100644 --- a/2.12.3/docker-entrypoint.d/10-com-server.sh +++ b/2.12.3/docker-entrypoint.d/10-com-server.sh @@ -42,6 +42,9 @@ if [ -f ${SRV_CONF_FILE} ]; then done fi +# Quick fix https://github.com/OCSInventory-NG/OCSInventory-Docker-Stack/issues/16 +sed -i 's/^.*PerlSetEnv OCS_OPT_DBI_PRINT_ERROR.*$/PerlSetEnv OCS_OPT_DBI_PRINT_ERROR 0/' ${SRV_CONF_FILE} + # Permissions chown -R $APACHE_RUN_USER: $OCS_LOG_DIR