Skip to content

Commit

Permalink
build: fix import data setup task
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd248 committed Jan 14, 2025
1 parent 4a896b6 commit 7c30d61
Show file tree
Hide file tree
Showing 3 changed files with 956 additions and 25 deletions.
6 changes: 5 additions & 1 deletion .ddev/commands/web/.utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ function update_typo3() {
}

function import_data() {
$TYPO3_BIN database:import < /var/www/html/.ddev/test/data/dump.sql
PUBLIC_DIR="/var/www/html/.test/${VERSION}/public"
EXPORT_DIR="${PUBLIC_DIR}/fileadmin/user_upload/_temp_/importexport"
mkdir -p $EXPORT_DIR
cp /var/www/html/.ddev/test/data/data.xml $EXPORT_DIR
$TYPO3_BIN impexp:import -vvv --force-uid "$EXPORT_DIR/data.xml"
}

message() {
Expand Down
Loading

0 comments on commit 7c30d61

Please sign in to comment.