From 0f3383578bc739e198b824f5f0c6fba4a7853cd2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 13 Sep 2024 16:55:03 +0200 Subject: [PATCH] Fix load of demo for develop --- images/15.0.3-php7.4/docker-run.sh | 3 ++- images/16.0.5-php8.1/docker-run.sh | 3 ++- images/17.0.4-php8.1/docker-run.sh | 3 ++- images/18.0.5-php8.1/docker-run.sh | 3 ++- images/19.0.3-php8.2/docker-run.sh | 3 ++- images/develop/docker-run.sh | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/images/15.0.3-php7.4/docker-run.sh b/images/15.0.3-php7.4/docker-run.sh index 4233ad8..3907327 100755 --- a/images/15.0.3-php7.4/docker-run.sh +++ b/images/15.0.3-php7.4/docker-run.sh @@ -250,8 +250,9 @@ function initializeDatabase() echo "Then we load demo data ${fileSQL} ..." echo "Then we load demo data ${fileSQL} ..." >> /var/www/documents/initdb.log - #sed -i 's/^--.*//g;' ${fileSQL} + sed -i 's/\/\*!999999\\- enable the sandbox mode \*\///g;' ${fileSQL} echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" + echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" >> /var/www/documents/initdb.log mysql -u ${DOLI_DB_USER} -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1 done fi diff --git a/images/16.0.5-php8.1/docker-run.sh b/images/16.0.5-php8.1/docker-run.sh index 4233ad8..3907327 100755 --- a/images/16.0.5-php8.1/docker-run.sh +++ b/images/16.0.5-php8.1/docker-run.sh @@ -250,8 +250,9 @@ function initializeDatabase() echo "Then we load demo data ${fileSQL} ..." echo "Then we load demo data ${fileSQL} ..." >> /var/www/documents/initdb.log - #sed -i 's/^--.*//g;' ${fileSQL} + sed -i 's/\/\*!999999\\- enable the sandbox mode \*\///g;' ${fileSQL} echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" + echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" >> /var/www/documents/initdb.log mysql -u ${DOLI_DB_USER} -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1 done fi diff --git a/images/17.0.4-php8.1/docker-run.sh b/images/17.0.4-php8.1/docker-run.sh index 4233ad8..3907327 100755 --- a/images/17.0.4-php8.1/docker-run.sh +++ b/images/17.0.4-php8.1/docker-run.sh @@ -250,8 +250,9 @@ function initializeDatabase() echo "Then we load demo data ${fileSQL} ..." echo "Then we load demo data ${fileSQL} ..." >> /var/www/documents/initdb.log - #sed -i 's/^--.*//g;' ${fileSQL} + sed -i 's/\/\*!999999\\- enable the sandbox mode \*\///g;' ${fileSQL} echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" + echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" >> /var/www/documents/initdb.log mysql -u ${DOLI_DB_USER} -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1 done fi diff --git a/images/18.0.5-php8.1/docker-run.sh b/images/18.0.5-php8.1/docker-run.sh index 4233ad8..3907327 100755 --- a/images/18.0.5-php8.1/docker-run.sh +++ b/images/18.0.5-php8.1/docker-run.sh @@ -250,8 +250,9 @@ function initializeDatabase() echo "Then we load demo data ${fileSQL} ..." echo "Then we load demo data ${fileSQL} ..." >> /var/www/documents/initdb.log - #sed -i 's/^--.*//g;' ${fileSQL} + sed -i 's/\/\*!999999\\- enable the sandbox mode \*\///g;' ${fileSQL} echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" + echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" >> /var/www/documents/initdb.log mysql -u ${DOLI_DB_USER} -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1 done fi diff --git a/images/19.0.3-php8.2/docker-run.sh b/images/19.0.3-php8.2/docker-run.sh index 4233ad8..3907327 100755 --- a/images/19.0.3-php8.2/docker-run.sh +++ b/images/19.0.3-php8.2/docker-run.sh @@ -250,8 +250,9 @@ function initializeDatabase() echo "Then we load demo data ${fileSQL} ..." echo "Then we load demo data ${fileSQL} ..." >> /var/www/documents/initdb.log - #sed -i 's/^--.*//g;' ${fileSQL} + sed -i 's/\/\*!999999\\- enable the sandbox mode \*\///g;' ${fileSQL} echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" + echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" >> /var/www/documents/initdb.log mysql -u ${DOLI_DB_USER} -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1 done fi diff --git a/images/develop/docker-run.sh b/images/develop/docker-run.sh index 4233ad8..3907327 100755 --- a/images/develop/docker-run.sh +++ b/images/develop/docker-run.sh @@ -250,8 +250,9 @@ function initializeDatabase() echo "Then we load demo data ${fileSQL} ..." echo "Then we load demo data ${fileSQL} ..." >> /var/www/documents/initdb.log - #sed -i 's/^--.*//g;' ${fileSQL} + sed -i 's/\/\*!999999\\- enable the sandbox mode \*\///g;' ${fileSQL} echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" + echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1" >> /var/www/documents/initdb.log mysql -u ${DOLI_DB_USER} -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${fileSQL} >> /var/www/documents/initdb.log 2>&1 done fi