From fd5430c9d9ed6399356295f1db5332e222587b9e Mon Sep 17 00:00:00 2001 From: yledoare Date: Wed, 19 Jun 2024 19:27:04 +0200 Subject: [PATCH] #NEW force_install_noedit : add value 3 to block all technical parameters excepted main_url (#30080) * Bookcal : more date check * fix phpcs warning * No error if dateStartTimestamp not yet set * Docker for PROD * Update Readme * Fix else if CodeSniffer warning * Update Readme for Docker * Random DB password * Add install.forced.docker.php * Enable dolibarr_main_url_roo writable in forced mode * revert on main_url editable * force_install_noedit : new value '3' to block all technical parameters excepted main_url, used in install.forced.docker.php * force_install_noedit code 3 corrections * Fix HOST_USER_ID, add HOST_GROUP_ID * Fix phpcs * Not force https if DOL_MAIN_URL_ROOT yet contains https * Space after comma for phpcs * use HOST_GROUP_ID * Explanations to check https * Update main.inc.php --------- Co-authored-by: Laurent Destailleur --- build/docker/README.md | 1 + build/docker/docker-compose.yml | 24 +++++++--------------- build/docker/docker-run.sh | 2 +- htdocs/install/fileconf.php | 26 ++++++++++++------------ htdocs/install/install.forced.docker.php | 4 ++-- htdocs/install/step1.php | 5 +++-- htdocs/main.inc.php | 1 + 7 files changed, 28 insertions(+), 35 deletions(-) diff --git a/build/docker/README.md b/build/docker/README.md index 7dc8aac3bb0..03932387ee9 100644 --- a/build/docker/README.md +++ b/build/docker/README.md @@ -1,6 +1,7 @@ # How to use it ? export HOST_USER_ID=$(id -u) +export HOST_GROUP_ID=$(id -g) export MYSQL_ROOT_PWD=$(tr -dc A-Za-z0-9 @@ -247,7 +247,7 @@ if (!empty($force_install_noedit)) { - > @@ -275,7 +275,7 @@ if (!empty($force_install_noedit)) { id="db_name" name="db_name" value="" - > @@ -387,7 +387,7 @@ if (!empty($force_install_noedit)) { ?>