Skip to content

Commit 07c66e9

Browse files
authored
Merge pull request #462 from DiscoverAndChange/openemr-bug-fix-461-restore-openemr
Fixes #461 restore openemr command path fix
2 parents a1f8cb9 + 40740ce commit 07c66e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/openemr/flex/utilities/devtoolsLibrary.source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ backupOpenemr() {
121121

122122
# parameter 1 is identifier
123123
restoreOpenemr() (
124+
cd /snapshots || exit
124125
tar -C /snapshots -xzf "${1}.tgz"
125126
# need to empty the database before the restore database import
126127
mariadb-dump --skip-ssl -u "${CUSTOM_ROOT_USER}" --password="${MYSQL_ROOT_PASS}" -h "${MYSQL_HOST}" -P "${CUSTOM_PORT}" --add-drop-table --no-data "${CUSTOM_DATABASE}" |

0 commit comments

Comments
 (0)