package/mariadb: fix potential error message in sysv startup script
authorRyan Coe <bluemrp9@gmail.com>
Tue, 4 Feb 2020 01:21:56 +0000 (17:21 -0800)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 4 Feb 2020 13:57:20 +0000 (14:57 +0100)
commit22bb9b2c28a6835e8414cd0cd6cbb61223c0f0d4
tree29eedf8baebaa0a0470e11d95e2344b8148c825b
parentc700b5ea8dc8cbe992cba260c5e98736fa95b32f
package/mariadb: fix potential error message in sysv startup script

In order to check if the initial database needs created, the startup
script calls ls -1 $MYSQL_LIB | wc -l to check the number of files in
the directory. If the directory does not exist, an error is printed.
We fix this by redirecting stderr to /dev/null for the ls call.

Signed-off-by: Ryan Coe <bluemrp9@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mariadb/S97mysqld