1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-08 00:57:05 +00:00

Ensure owncloud directory is accessible

This commit is contained in:
downtownallday 2020-06-09 20:37:08 -04:00
parent 8f2e4d1247
commit 8082b06bd2

View File

@ -100,6 +100,10 @@ nextcloud_hash=50b98d2c2f18510b9530e558ced9ab51eb4f11b0
# version.php since the restore procedure can leave the system in a state where you have a newer Nextcloud
# application version than the database.
# ensure directory is accessible
if [ -d "/usr/local/lib/owncloud" ]; then
chmod u+rx /usr/local/lib/owncloud
fi
# If config.php exists, get version number, otherwise CURRENT_NEXTCLOUD_VER is empty.
if [ -f "$STORAGE_ROOT/owncloud/config.php" ]; then
CURRENT_NEXTCLOUD_VER=$(php -r "include(\"$STORAGE_ROOT/owncloud/config.php\"); echo(\$CONFIG['version']);")