Bug 17237: Remove CREATE USER 'user'@'%' line
authorMark Tompsett <mtompset@hotmail.com>
Wed, 25 Apr 2018 16:44:03 +0000 (16:44 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 8 Nov 2018 15:10:01 +0000 (16:10 +0100)
commitfb53f07036145761497e332e23aa741ba5b7c1f1
treeb2297836fcdd9d0b8691fa6a4fb6154d9b7045a4
parent079efd6341579984391f6a6bc7cf467886789da2
Bug 17237: Remove CREATE USER 'user'@'%' line

Having a 'user'@'%' line decreases database security.
Bug 16690 closes the need for such a line, and this
bug removes the use of it.

TEST PLAN
---------
While this depends on 16690, it is not required for testing.

On a kohadev box:
sudo koha-create --create-db test_17237_a
git bz apply 17237
sudo perl ~/misc4dev/cp_debian_files.pl
restart_all
sudo systemctl daemon-reload
sudo koha-create --create_db test_17237_b
sudo mysql -u root
SELECT user,host from mysql.user;
-- test_17237_a will have two entries, one being '%'
-- test_17237_b will only have one entry, not '%'

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

(cherry picked from commit 1e856e7e7316749f59cb4e721e352b0a60237def)

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

(cherry picked from commit 291c250dcfe23c046f3b5df419b8819fb92cbcf3)

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
debian/scripts/koha-create