upgrades-migrations / preupgrade-assistant

The Preupgrade Assistant performs an assessment of the system from the "upgradeability" point of view. Disclaimer: It was fun. R.I.P. :-)
GNU General Public License v3.0
13 stars 15 forks source link

Preupgrade-assistant should copy modified config files to dirtyconf #104

Open phracek opened 8 years ago

phracek commented 8 years ago

Preupgrade-assistant should copy modified config files to dirtyconf directory if they don't exist in /root/preupgrade/{dirtyconf,cleanconf}.

pirat89 commented 8 years ago

Just note: Maybe it will be spread with another directory(ries) {untrackedconf,config_trash} . It's still under discussion.

phracek commented 8 years ago

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.

phracek commented 8 years ago

@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?

pirat89 commented 8 years ago

( I will look at it hopefully this month yet. )

phracek commented 8 years ago

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