diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-05-28 21:42:52 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-05-28 21:42:52 +0300 |
commit | e917409291e0c06195a8b749a5a025551b7f9491 (patch) | |
tree | effc6654e650d1c125e603acd50ac8538b0d1707 /etc/nextcloudpi-config.d/nc-datadir.sh | |
parent | eb4e0d4bbaab2cdbe41d9b0f0afced752106c667 (diff) |
nc-datadir detect occ errorsv0.12.13
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-datadir.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-datadir.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/nc-datadir.sh b/etc/nextcloudpi-config.d/nc-datadir.sh index eeb8dd12..6b8d9237 100644 --- a/etc/nextcloudpi-config.d/nc-datadir.sh +++ b/etc/nextcloudpi-config.d/nc-datadir.sh @@ -31,7 +31,11 @@ because they do not provide a compatible user/permissions system" \ configure() { ## CHECKS - local SRCDIR=$( cd /var/www/nextcloud; sudo -u www-data php occ config:system:get datadirectory ) + local SRCDIR + SRCDIR=$( cd /var/www/nextcloud; sudo -u www-data php occ config:system:get datadirectory ) || { + echo -e "Error reading data directory. Is NextCloud running and configured?"; + return 1; + } [ -d $SRCDIR ] || { echo -e "data directory $SRCDIR not found"; return 1; } [ -d $DATADIR_ ] && { |