diff options
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 }' )" |