Open phracek opened 8 years ago
Just note: Maybe it will be spread with another directory(ries) {untrackedconf,config_trash} . It's still under discussion.
I did first commit https://github.com/upgrades-migrations/preupgrade-assistant/commit/a7906d437e486b7402cb0d9e80c1262d1dc9b489.
What this commit does? First of all it checks whether modified config files exists in cleanconf and if yes, then it deletes dirtyconf of course.
If it does not exist in cleanconf then it will look to dirtyconf directory. If configuration file exists in dirtyconf then it does not copy file to neither to cleanconf nor to dirtyconf.
if configuration file does not exists neither in cleanconf nor in dirtyconf, then it will be copied to dirtyconf.
@pirat89 Can you please prepare a draft for it. Not as PR, but rather some description in this PR. What is the best solution for you?
( I will look at it hopefully this month yet. )
I would be glad to have an overview how it will be implemented. Would you be able to write down a description? It does not matter how the functions will be called. thx
Preupgrade-assistant should copy modified config files to dirtyconf directory if they don't exist in /root/preupgrade/{dirtyconf,cleanconf}.