Skip to content

Commit

Permalink
Save log in the persistent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 6, 2024
1 parent 8b9a1aa commit 741db1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ function initializeDatabase()
for fileSQL in /var/www/dev/initdemo/*.sql; do
echo "Load demo data ${fileSQL} ..."
sed -i 's/--.*//g;' ${fileSQL}
echo "mysql -u ${DOLI_DB_USER} -pxxxxxxx -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} ${DOLI_DB_NAME} < ${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/dev/initdemo/initdemo.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/initdemo.log 2>&1"
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/initdemo.log 2>&1
done
fi

Expand Down

0 comments on commit 741db1f

Please sign in to comment.