mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Improve terminal reading experience by limiting the document width to 80. On the web interface, markdown with merge every line into a single paragraph.
22 lines
571 B
Bash
Executable File
22 lines
571 B
Bash
Executable File
#!/bin/bash
|
|
# Script used by the Dockerfile.
|
|
# See README.md to know how to create a Dolibarr env with docker
|
|
set -ex
|
|
|
|
if [ "${HOST_USER_ID}" == "" ]; then
|
|
echo "Define HOST_USER_ID to your user ID before starting"
|
|
exit 1
|
|
fi
|
|
|
|
usermod -u "${HOST_USER_ID}" www-data
|
|
groupmod -g "${HOST_USER_ID}" www-data
|
|
|
|
echo "[docker-run] => update '${PHP_INI_DIR}/conf.d/dolibarr-php.ini'"
|
|
cat <<EOF > "${PHP_INI_DIR}/conf.d/dolibarr-php.ini"
|
|
date.timezone = ${PHP_INI_DATE_TIMEZONE:-UTC}
|
|
memory_limit = ${PHP_INI_MEMORY_LIMIT:-256M}
|
|
display_errors = Off
|
|
EOF
|
|
|
|
exec apache2-foreground
|