Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foreman-puppet: don't run db:migrate in postinst #7225

Merged
merged 1 commit into from Nov 4, 2021

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Nov 4, 2021

No description provided.

else
/usr/sbin/foreman-rake db:migrate >> $LOGFILE 2>&1 || true
/usr/sbin/foreman-rake db:seed >> $LOGFILE 2>&1 || true
/usr/sbin/foreman-rake apipie:cache:index >> $LOGFILE 2>&1 || true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, I guess this should still happen?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think we should keep, I wondered if this should be the plugin version of it like RPM?

https://github.com/theforeman/foreman-packaging/blob/rpm/develop/packages/foreman/foreman/foreman.spec#L911

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah (and no), the line you're linking to is the compile step, not the index step

@evgeni
Copy link
Member Author

evgeni commented Nov 4, 2021

yepp, this is def needed to unbreak upgrades

@ehelms ehelms merged commit 14de980 into theforeman:deb/develop Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants