Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/univention-app.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-01-15 00:53:22 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-03-19 01:41:45 +0300
commit5c4bd9efa5a76a758470a6449b5184364b32b43c (patch)
treeacd206ec7a8f610cbdcd7dcbcbda6183919ef998
parenta7fe271e0911320124ec4914fc4294b447176bb1 (diff)
set the distributed memcache setting, ensure that apcu is enabled on cli
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--resources/60-nextcloud.ini2
-rw-r--r--setup8
2 files changed, 10 insertions, 0 deletions
diff --git a/resources/60-nextcloud.ini b/resources/60-nextcloud.ini
index 2314210..281c92a 100644
--- a/resources/60-nextcloud.ini
+++ b/resources/60-nextcloud.ini
@@ -6,4 +6,6 @@ opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
+apc.enable_cli=1
+
memory_limit = 512M
diff --git a/setup b/setup
index 59786bb..95c9e7a 100644
--- a/setup
+++ b/setup
@@ -116,6 +116,7 @@ if [ "$NC_IS_UPGRADE" -eq 0 ] ; then
$OCC config:system:set updatechecker --type=boolean --value="false" # this is handled via UCS AppCenter
$OCC config:system:set upgrade.disable-web --type=boolean --value="true"
$OCC config:system:set --value "\OC\Memcache\APCu" memcache.local
+ $OCC config:system:set --value "\OC\Memcache\APCu" memcache.distributed
$OCC config:system:set overwriteprotocol --value="https"
$OCC config:system:set overwritewbroot --value="/nextcloud"
$OCC config:system:set overwrite.cli.url --value="https://$NC_UCR_DOMAIN/nextcloud"
@@ -150,6 +151,13 @@ else
for APPID in "${DISABLED_APPS[@]}" ; do
$OCC app:enable "$APPID" || $OCC app:install "$APPID" || error_msg "Could not re-enable $APPID"
done
+
+ MEM_DIST=$($OCC config:system:get --default-value "NOT_SET" memcache.distributed)
+ if [ "${MEM_DIST}" = "NOT_SET" ]; then
+ # some code might require a set distributed memcache
+ # this block is safe to remove with Nextcloud 22
+ $OCC config:system:set --value "\OC\Memcache\APCu" memcache.distributed
+ fi
fi
# Recreate the htaccess on both install and update