Closed NasKar2 closed 4 years ago
Hi NasKar,
Getting closer. I'm beginning to see where you're heading with this. What I'm starting to recognise is that what's lacking is a clear definition of 'reinstall'. I've come to realise that what it means is that the data outside the jail is considered valid, but the jail itself needs to be rebuilt because, for instance, it's been destroyed.
So, in rebuilding the jail, the guiding principle should be that nothing outside the jail is touched. This would mean for instance that, in a reinstall, the code that configures WP should not be executed (it still is in your version), because those files live outside the jail.
I'm going to close this pull request, but work on something based on your ideas. The main reason is, I think you've exposed your db password in one of the commits. You may want to change your db password now.
Add option to reinstall to existing data. Must set options DB_ROOT_PASSWORD="" DB_PASSWORD="" in the config file.