Bug 23250: Just use an @ in the password
authorMark Tompsett <mtompset@hotmail.com>
Thu, 4 Jul 2019 00:29:01 +0000 (00:29 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 4 Jul 2019 08:31:58 +0000 (09:31 +0100)
commit6a6866afa343e3b53ad77a36552e19404ac7afab
tree5a284f0c3b5d4f83bf612a5c626c4d271640ea65
parentcbf605539ad90e18a0325b1d06e43b8b71b655e9
Bug 23250: Just use an @ in the password

Rather than try to use -y and symbols, since
older versions of pwgen don't have the -y,
Purposefully just shorten the generated
password to 15 characters and put @ on the end.
This avoids nasty shell globbing, fixes the
MySQL requiring a symbol by default in the
newer versions.

While @ at the end is less secure, the
password portion providing security is
still 15 characters long.

Before patch, password should have potentially
multiple ugly symbols in it.
After patch, when creating an instance, the
password will have an @ at the end of it.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
debian/scripts/koha-create