]> git.koha-community.org Git - koha.git/commit
Bug 23250: Just use an @ in the password
authorMark Tompsett <mtompset@hotmail.com>
Thu, 4 Jul 2019 00:29:01 +0000 (00:29 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 22 Jul 2019 23:53:38 +0000 (23:53 +0000)
commit585212d477264025cb7c189eace50453c5a39021
tree94952fab2a27ea26cba06c560a6b53c6159939f2
parentae7f79b9035d86ae25dc47751ea98d9041ff2ef0
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>
(cherry picked from commit 6a6866afa343e3b53ad77a36552e19404ac7afab)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit db843e0dc848b45d5ec9c0a27d2fdb65b2e8989f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
debian/scripts/koha-create