summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-04-03 14:01:34 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-04-03 14:01:34 +0200
commit3387bce832e9198e840f93892b48121700bfbedb (patch)
tree3a9758927f3a0b48254748ca1005a53bc32d8731 /roles/apps/nextcloud
parentcloudia: upgrade nextcloud and collabora (diff)
nextcloud: upgrade wolke.elevate.at and add info output
Diffstat (limited to 'roles/apps/nextcloud')
-rw-r--r--roles/apps/nextcloud/tasks/main.yml27
1 files changed, 22 insertions, 5 deletions
diff --git a/roles/apps/nextcloud/tasks/main.yml b/roles/apps/nextcloud/tasks/main.yml
index a951867c..7d52be32 100644
--- a/roles/apps/nextcloud/tasks/main.yml
+++ b/roles/apps/nextcloud/tasks/main.yml
@@ -163,8 +163,25 @@
mode: 0755
## TODO:
-# run this after installation is complete:
-#
-# nextcloud-occ {{ instance }} db:add-missing-indices
-# nextcloud-occ {{ instance }} db:convert-filecache-bigint
-#
+# do this automatically!
+- name: print info for new instance
+ loop: "{{ nextcloud_instances | dict2items }}"
+ loop_control:
+ label: "{{ item.key }}"
+ when: "'new' in item.value and item.value.new"
+ pause:
+ seconds: 5
+ prompt: |
+ ************* {{ item.key }} is a new instance
+ **
+ ** Please run the following commands to finalize the installation
+ **
+ ** $ nextcloud-occ {{ item.key }} db:add-missing-indices
+ ** $ nextcloud-occ {{ item.key }} db:convert-filecache-bigint
+ **
+ ** Also please add the following option to the file
+ ** "{{ nextcloud_base_path }}/{{ item.key }}/nextcloud/config/config.php"
+ **
+ ** 'overwriteprotocol' => 'https',
+ **
+ ****************************************