Skip to content

Commit 3604da8

Browse files
authored
Merge pull request #43 from itk-dev/feature/post-sync-db-script
sync:db post script
2 parents a05563d + ba8bfc3 commit 3604da8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/itkdev-docker-compose

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ Commands:
132132
Sync database base on 'REMOTE_DB_DUMP_CMD' in the env
133133
file.
134134
135+
If 'SYNC_DB_POST_SCRIPT' is set, it will be eval'ed after
136+
importing the remote database.
137+
135138
sync:files
136139
Sync files base on 'REMOTE_PATH' or 'LOCAL_PATH' in
137140
the env file.
@@ -363,6 +366,10 @@ to show progress
363366
EOF
364367
ssh ${REMOTE_HOST} ${REMOTE_DB_DUMP_CMD} | eval $(itkdev-docker-compose sql:connect)
365368
fi
369+
370+
if [ ! -z "${SYNC_DB_POST_SCRIPT:-}" ]; then
371+
eval "${SYNC_DB_POST_SCRIPT}"
372+
fi
366373
;;
367374

368375
sync:files)

0 commit comments

Comments
 (0)