nublic / Nublic

Your home in Internet
6 stars 1 forks source link

On install and reinstall nublic-users packages the system gets broken #44

Open davisein opened 11 years ago

davisein commented 11 years ago

Uninstalation should deal with that problem. Also the server should be more resistant to recover in case of these errors.

To reproduce just uninstall and reinstall the package. The data from the database gets lost (as expected) but nublic users keep in the system. We have to decide whether to keep the users or not. But if we keep the nublic users we must provide a way so that they work after reinstall.

Nublic users leave some information in:

Apache authentication, unix user, home directory (if the user logs in), etc.

davisein commented 11 years ago

Alex, what do you think about that? What would you do?

serras commented 11 years ago

Basically, the key point is whether users created by Nublic should be deleted when the package is deleted. The current Debian semantics should be that they are deleted only when the package is purged, not when removed. So, my answer would be: do not remove when deleting, do so when purging (and this change should be done also in any package that does some configuration or creates a database).

So, the question now is: what to do if nublic-resource is removed? Because is when nublic-resource is installed when the master database for resources is created, and where the information on how to access this information is recorded. Right now, in any uninstall the resource database gets removed, so when reinstalled the database is created with another name and no previous resource can be accesed.

So, my whole solution would be:

That's my two cents.