8cdd0fb0b1bb4434f59df694a4bf3f609413bd82
shadow's commonio_open() refuses to modify a user/group database whose last line has no trailing newline, failing with a misleading "cannot open /etc/passwd". Under 'set -e' this aborted the whole setup at the fish step (and would later break docker's groupadd/usermod too). - add ensure_db_trailing_newlines() to normalize /etc/passwd, /etc/group and /etc/shadow before any user/group modification - switch default shell via 'usermod -s' with a 'chsh' fallback, warning instead of aborting the script on failure
Description
No description provided
Languages
Shell
57.9%
Python
42.1%