System: userdel returns 6 when no maildir is deleted but homedir is

So we agree on that one!
This commit is contained in:
Darksider3 2019-10-22 13:50:14 +02:00
parent fb9a98fb81
commit 6ea679cb60

View file

@ -181,7 +181,7 @@ class System:
return True
else:
ret = subprocess.call(cc)
if ret != 0 or ret != 6:
if ret != 0 and ret != 6:
raise lib.UserExceptions.UnknownReturnCode(
f"Could not delete user with command {cc}. Return code: {ret}")
return True