HomeFreeBSD

nuageinit: Fix passwords

Description

nuageinit: Fix passwords

The hashed password usually contains a "$" sign, which, when used on a
shell, must be escaped. Also, the plain text password may contain
special characters that require escaping.

Add a quick fix by enclosing it in single quotes. Note that if the
plain text password contains a "'", it will still fail. This will be
properly fixed in later commits.

Some here documents require the document to be a string literal,
especially when passing invalid characters. Enclose it in single
quotes.

Signed-off-by: Jose Luis Duran <jlduran@gmail.com>
(cherry picked from commit b9ce743c5447e90c2c97f4d49e048c301f708527)

Details

Provenance
jlduranAuthored on Jul 30 2024, 1:28 AM
baptCommitted on Oct 8 2024, 7:04 AM
Parents
rG03abe3ac4077: nuageinit: Standardize user-facing error messages
Branches
Unknown
Tags
Unknown