mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
added database dir to ncp-info (#553)
This commit is contained in:
parent
fe12ff9e24
commit
f1cc627f2f
@ -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 }' )"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user