diff --git a/ct/romm.sh b/ct/romm.sh index 4391d2b4c..4b977168b 100644 --- a/ct/romm.sh +++ b/ct/romm.sh @@ -44,6 +44,10 @@ function update_script() { CLEAN_INSTALL=1 fetch_and_deploy_gh_release "romm" "rommapp/romm" "tarball" "latest" "/opt/romm" + find /opt/romm/backend/alembic/versions -maxdepth 1 -type f -name '1.*.py' -delete 2>/dev/null || true + find /opt/romm/backend/alembic/versions -maxdepth 1 -type f -name '2.0.0_.py' -delete 2>/dev/null || true + find /opt/romm/backend -name '__pycache__' -type d -prune -exec rm -rf {} + 2>/dev/null || true + restore_backup msg_info "Updating ROMM"