aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nextcloud/templates
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-03-15 20:41:58 +0100
committerbinary <me@rgoncalves.se>2021-03-15 20:41:58 +0100
commit6cf77357bcd32ecff44446564ece49b1ab286ece (patch)
tree9308ab179ceb0373d7893fe1c8d9065ca4e500b5 /roles/nextcloud/templates
parent44b32f0d099d130f9e5691d049740b117334c5cb (diff)
downloadinfrastructure-6cf77357bcd32ecff44446564ece49b1ab286ece.tar.gz
Turn some manuals quirks to automatic.
Diffstat (limited to 'roles/nextcloud/templates')
-rw-r--r--roles/nextcloud/templates/var-www-nextcloud-config-custom.config.php.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/nextcloud/templates/var-www-nextcloud-config-custom.config.php.j2 b/roles/nextcloud/templates/var-www-nextcloud-config-custom.config.php.j2
new file mode 100644
index 0000000..15df079
--- /dev/null
+++ b/roles/nextcloud/templates/var-www-nextcloud-config-custom.config.php.j2
@@ -0,0 +1,4 @@
+<?php
+$CONFIG = array (
+ 'datadirectory' => ((php_sapi_name() == 'cli') ? '/var/www' : '') . '/nextcloud/data',
+);
remember that computers suck.