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
This commit is contained in:
Y0plait 2024-10-24 20:08:13 +02:00 committed by GitHub
parent a4d2b62bd1
commit 8638ad8a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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