diff options
author | Shaunak Deshmukh <kanuahs@gmail.com> | 2018-06-26 08:32:47 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-26 08:42:46 +0300 |
commit | f1cc627f2fc0f30dd6c6323b0cffd4d34e739141 (patch) | |
tree | 007f0b31b985b57ccb519886d9eed0682736fa77 /bin/ncp-diag | |
parent | fe12ff9e24969fff690cb94d9755fe22ead24767 (diff) |
added database dir to ncp-info (#553)v0.57.14
Diffstat (limited to 'bin/ncp-diag')
-rw-r--r-- | bin/ncp-diag | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ncp-diag b/bin/ncp-diag index c7e1639f..3276e9bc 100644 --- a/bin/ncp-diag +++ b/bin/ncp-diag @@ -36,6 +36,11 @@ SWP="$( swapon | tail -1 | awk '{ print $1 }' )" [[ "$SWP" == "" ]] && SWP="none" echo "swapfile|$SWP" +# Database +DBDIR=$( grep datadir /etc/mysql/mariadb.conf.d/50-server.cnf | awk -F "= " '{ print $2 }' ) +test -d "$DBDIR" || DBDIRINFO=" (doesn't exist)" +echo "dbdir|$DBDIR$DBDIRINFO" + # Nextcloud [[ ${EUID} -eq 0 ]] && SUDO="sudo -u www-data" VERSION="$( $SUDO php /var/www/nextcloud/occ status | grep "version:" | awk '{ print $3 }' )" |