Update sanity check for passwd existance
Update validation for the newer versions of rails
The /etc/pam.d/passwd is optional in fact,
for example, there is none in the tumbleeweed.
So let's relax the condition: if there is no /etc/pam.d/passwd,
check if there is a passwd binary in /usr/bin of /usr/sbin
Starting with Rails6.1 there has changed the validation. Namelly,
the ActiveModel::Errors has changed it's structure.
Update sanity check for passwd existance Update validation for the newer versions of rails
The /etc/pam.d/passwd is optional in fact, for example, there is none in the tumbleeweed. So let's relax the condition: if there is no /etc/pam.d/passwd, check if there is a passwd binary in /usr/bin of /usr/sbin
Starting with Rails6.1 there has changed the validation. Namelly, the ActiveModel::Errors has changed it's structure.