Apply some more general fixes
This commit is contained in:
@@ -51,10 +51,10 @@ for file in /etc/shadow /etc/gshadow; do
|
|||||||
# strictly required but it affords us flexibility for zero cost so whatever.
|
# strictly required but it affords us flexibility for zero cost so whatever.
|
||||||
ents=()
|
ents=()
|
||||||
case "$file" in
|
case "$file" in
|
||||||
/etc/shadow)
|
*/shadow)
|
||||||
ents=("passwd")
|
ents=("passwd")
|
||||||
;;
|
;;
|
||||||
/etc/gshadow)
|
*/gshadow)
|
||||||
ents=("group")
|
ents=("group")
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -88,7 +88,7 @@ for file in /etc/shadow /etc/gshadow; do
|
|||||||
else
|
else
|
||||||
# If we're at this point in the code path, we now know that we for-sure are
|
# If we're at this point in the code path, we now know that we for-sure are
|
||||||
# operating on an entry that will cause systemd-sysusers to bail out
|
# operating on an entry that will cause systemd-sysusers to bail out
|
||||||
# on invocation
|
# on invocation. We are thus going to remove it.
|
||||||
echo "Fixing broken entity: $name"
|
echo "Fixing broken entity: $name"
|
||||||
fi
|
fi
|
||||||
done < "$file"
|
done < "$file"
|
||||||
|
Reference in New Issue
Block a user