Fix issue #17 IS_MYSQLUTILS with oracle MySQL5.7 on debian stretch #42

Merged
benpro merged 3 commits from 17-IS_MYSQLUTILS-with-oracle-MySQL5.7 into master 2019-01-18 15:25:13 +01:00
Contributor
  • MYSQL_ADMIN is now a variable because some installation doesn't have mysqladmin
    user.
  • /usr/bin/mytop or /usr/local/bin/mytop are checked.
- `MYSQL_ADMIN` is now a variable because some installation doesn't have `mysqladmin` user. - `/usr/bin/mytop` or `/usr/local/bin/mytop` are checked.
Author
Contributor

@vlaborie Review appreciated! I splitted in three tests for more readability.

@vlaborie Review appreciated! I splitted in three tests for more readability.
benpro added a new dependency 2019-01-16 15:33:25 +01:00
First-time contributor

Look good but IS_MYSQLUTILS FAILED! emerge multiple time instead of one time.

This can be a good thing if the error show more detail, eg.

  • IS_MYSQLUTILS (.my.cnf) FAILED!
  • IS_MYSQLUTILS (mytop) FAILED!
  • IS_MYSQLUTILS (.mytop) FAILED!
Look good but **IS_MYSQLUTILS FAILED!** emerge multiple time instead of one time. This can be a good thing if the error show more detail, eg. - **IS_MYSQLUTILS (.my.cnf) FAILED!** - **IS_MYSQLUTILS (mytop) FAILED!** - **IS_MYSQLUTILS (.mytop) FAILED!**
Author
Contributor

Hmmm. Yes but in verbose mode?
I could break if not in verbose?

Hmmm. Yes but in verbose mode? I could break if not in verbose?
First-time contributor

Yes it make more sense in verbose mode, a break is a good idea.

Yes it make more sense in verbose mode, a break is a good idea.
Author
Contributor

I have done the verbose part. I cannot find a way of breaking properly...

I have done the verbose part. I cannot find a way of breaking properly...
Author
Contributor

Exemple output:

root@evocheck:~# VERBOSE=1 /usr/share/scripts/evocheck.sh
IS_MYSQLUTILS FAILED!
mytop binary missing
IS_MYSQLUTILS FAILED!
debian-sys-maint missing in /root/.mytop
Exemple output: ```text root@evocheck:~# VERBOSE=1 /usr/share/scripts/evocheck.sh IS_MYSQLUTILS FAILED! mytop binary missing IS_MYSQLUTILS FAILED! debian-sys-maint missing in /root/.mytop ```
First-time contributor

LGTM

LGTM
benpro closed this pull request 2019-01-18 15:25:13 +01:00
benpro deleted branch 17-IS_MYSQLUTILS-with-oracle-MySQL5.7 2019-01-18 15:25:19 +01:00
Sign in to join this conversation.
No description provided.