Skip to content

Commit

Permalink
Keep partially migrated .env for troubleshooting (#1593)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Nov 2, 2023
1 parent a31ba45 commit bb0e526
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -2570,9 +2570,11 @@ handle_error() {
echo
echo "This happened during $__me update ${__params}, which is a bug."
if [ "$__during_migrate" -eq 1 ]; then
cp "${ENV_FILE}" "${ENV_FILE}".partial
cp "${ENV_FILE}".source "${ENV_FILE}"
echo
echo "Restored your ${ENV_FILE} file, to undo partial migration. Please verify it looks correct."
echo "The partially migrated file is in ${ENV_FILE}.partial for troubleshooting."
fi
fi
if [ "$__during_postgres" -eq 1 ]; then
Expand Down

0 comments on commit bb0e526

Please sign in to comment.