aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud-config.php
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-23 01:12:19 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-25 02:42:47 +0200
commit56340e0c374f9f287da09df6dbf52894d2ea4861 (patch)
tree38ab315800769c98fb614ca62811f0b2c23d6bbf /community/nextcloud/nextcloud-config.php
parent4c0262e02aa02fdedae18155d3ca87aeebeec87f (diff)
downloadaports-56340e0c374f9f287da09df6dbf52894d2ea4861.tar.bz2
aports-56340e0c374f9f287da09df6dbf52894d2ea4861.tar.xz
community/nextcloud: move bundled apps to /usr/share
It's totally wrong to install pkg's files into /var/lib and make them writable by webserver! Moreover when Nextcloud supports multiple app paths. So we use two apps locations: * /usr/share/webapps/nextcloud/apps - for apps installed by apk, * /var/lib/nextcloud/apps - for apps installed from AppStore. BTW Fedora uses the same approach.
Diffstat (limited to 'community/nextcloud/nextcloud-config.php')
-rw-r--r--community/nextcloud/nextcloud-config.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/community/nextcloud/nextcloud-config.php b/community/nextcloud/nextcloud-config.php
index 957df795f3..09a74cf41b 100644
--- a/community/nextcloud/nextcloud-config.php
+++ b/community/nextcloud/nextcloud-config.php
@@ -1,5 +1,20 @@
<?php
$CONFIG = array (
'datadirectory' => '/var/lib/nextcloud/data',
- 'logfile' => '/var/log/nextcloud/nextcloud.log'
+ 'logfile' => '/var/log/nextcloud/nextcloud.log',
+ 'apps_paths' => array (
+ // Read-only location for apps shipped with Nextcloud and installed by apk.
+ 0 => array (
+ 'path' => '/usr/share/webapps/nextcloud/apps',
+ 'url' => '/apps',
+ 'writable' => false,
+ ),
+ // Writable location for apps installed from AppStore.
+ 1 => array (
+ 'path' => '/var/lib/nextcloud/apps',
+ 'url' => '/apps-appstore',
+ 'writable' => true,
+ ),
+ ),
+ 'installed' => false,
);