-
Notifications
You must be signed in to change notification settings - Fork 189
Fix: The Db is dropped even when the PS_ERASE_DB is set to 0 #451
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Nicolas Lœuillet <[email protected]>
|
Hello @Quetzacoalt91 |
|
Hello @PululuK, Can you please describe what was the issue you're trying to solve? |
oh sorry I just updated |
| echo "\n* Drop mysql database..."; | ||
| echo "\n* Dropping existing database $DB_NAME..." | ||
| mysql -h $DB_SERVER -P $DB_PORT -u $DB_USER -p$DB_PASSWD -e "drop database if exists $DB_NAME;" | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code was useful even if we did not trigger the auto installation of PrestaShop. Don't you think the parameter --db_clear=$PS_ERASE_DB would be enough here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Quetzacoalt91 if you don't need to use the auto installation, in this case you need to adapte your script using post-install-scripts
SiraDIOP
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @PululuK,
Thanks for your PR,
Could you give us clearer steps on how to test the pr, please?
Thanks
tleon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you regenerate the base images so they implement your change ?
PS_ERASE_DBis setted 0DBis droped only whenPS_ERASE_DBis 0