Werk #5718: omd: Improved error handling when deleting site users

Titelomd: Improved error handling when deleting site users
Datum2018-02-01 21:23:38
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.5.0i3
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

When deleting a Check_MK site, the whole site user including it's home directory and group is removed. Previous versions were suppressing errors occuring during deletion of the site user which could leave the site user untouched including the site group which can only be deleted when the user has been deleted.

The omd rm command will now fail with an error in case the user can not be deleted and print out the reason for this issue. After resolving it, you can then try to execute omd rm again.