diff --git a/docker-run.sh b/docker-run.sh index e3769a6..f4949cd 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -208,7 +208,7 @@ function initializeDatabase() echo "Importing data from `basename ${fileSQL}` ..." echo "Importing data from `basename ${fileSQL}` ..." >> /var/www/documents/initdb.log sed -i 's/--.*//g;' ${fileSQL} - sed -i 's/__ENTITY__/1/g;' ${file} + sed -i 's/__ENTITY__/1/g;' ${fileSQL} 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 diff --git a/images/15.0.3-php7.4/docker-run.sh b/images/15.0.3-php7.4/docker-run.sh index e3769a6..f4949cd 100755 --- a/images/15.0.3-php7.4/docker-run.sh +++ b/images/15.0.3-php7.4/docker-run.sh @@ -208,7 +208,7 @@ function initializeDatabase() echo "Importing data from `basename ${fileSQL}` ..." echo "Importing data from `basename ${fileSQL}` ..." >> /var/www/documents/initdb.log sed -i 's/--.*//g;' ${fileSQL} - sed -i 's/__ENTITY__/1/g;' ${file} + sed -i 's/__ENTITY__/1/g;' ${fileSQL} 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 diff --git a/images/16.0.5-php8.1/docker-run.sh b/images/16.0.5-php8.1/docker-run.sh index e3769a6..f4949cd 100755 --- a/images/16.0.5-php8.1/docker-run.sh +++ b/images/16.0.5-php8.1/docker-run.sh @@ -208,7 +208,7 @@ function initializeDatabase() echo "Importing data from `basename ${fileSQL}` ..." echo "Importing data from `basename ${fileSQL}` ..." >> /var/www/documents/initdb.log sed -i 's/--.*//g;' ${fileSQL} - sed -i 's/__ENTITY__/1/g;' ${file} + sed -i 's/__ENTITY__/1/g;' ${fileSQL} 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 diff --git a/images/17.0.4-php8.1/docker-run.sh b/images/17.0.4-php8.1/docker-run.sh index e3769a6..f4949cd 100755 --- a/images/17.0.4-php8.1/docker-run.sh +++ b/images/17.0.4-php8.1/docker-run.sh @@ -208,7 +208,7 @@ function initializeDatabase() echo "Importing data from `basename ${fileSQL}` ..." echo "Importing data from `basename ${fileSQL}` ..." >> /var/www/documents/initdb.log sed -i 's/--.*//g;' ${fileSQL} - sed -i 's/__ENTITY__/1/g;' ${file} + sed -i 's/__ENTITY__/1/g;' ${fileSQL} 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 diff --git a/images/18.0.5-php8.1/docker-run.sh b/images/18.0.5-php8.1/docker-run.sh index e3769a6..f4949cd 100755 --- a/images/18.0.5-php8.1/docker-run.sh +++ b/images/18.0.5-php8.1/docker-run.sh @@ -208,7 +208,7 @@ function initializeDatabase() echo "Importing data from `basename ${fileSQL}` ..." echo "Importing data from `basename ${fileSQL}` ..." >> /var/www/documents/initdb.log sed -i 's/--.*//g;' ${fileSQL} - sed -i 's/__ENTITY__/1/g;' ${file} + sed -i 's/__ENTITY__/1/g;' ${fileSQL} 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 diff --git a/images/19.0.3-php8.2/docker-run.sh b/images/19.0.3-php8.2/docker-run.sh index e3769a6..f4949cd 100755 --- a/images/19.0.3-php8.2/docker-run.sh +++ b/images/19.0.3-php8.2/docker-run.sh @@ -208,7 +208,7 @@ function initializeDatabase() echo "Importing data from `basename ${fileSQL}` ..." echo "Importing data from `basename ${fileSQL}` ..." >> /var/www/documents/initdb.log sed -i 's/--.*//g;' ${fileSQL} - sed -i 's/__ENTITY__/1/g;' ${file} + sed -i 's/__ENTITY__/1/g;' ${fileSQL} 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 diff --git a/images/develop/docker-run.sh b/images/develop/docker-run.sh index e3769a6..f4949cd 100755 --- a/images/develop/docker-run.sh +++ b/images/develop/docker-run.sh @@ -208,7 +208,7 @@ function initializeDatabase() echo "Importing data from `basename ${fileSQL}` ..." echo "Importing data from `basename ${fileSQL}` ..." >> /var/www/documents/initdb.log sed -i 's/--.*//g;' ${fileSQL} - sed -i 's/__ENTITY__/1/g;' ${file} + sed -i 's/__ENTITY__/1/g;' ${fileSQL} 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