Added new role
This commit is contained in:
1
roles/nextcloud/templates/apcu.j2
Normal file
1
roles/nextcloud/templates/apcu.j2
Normal file
@ -0,0 +1 @@
|
||||
apc.enable_cli=1
|
||||
1
roles/nextcloud/templates/memory_limit.j2
Normal file
1
roles/nextcloud/templates/memory_limit.j2
Normal file
@ -0,0 +1 @@
|
||||
memory_limit=512M
|
||||
4
roles/nextcloud/templates/notify_push_service.j2
Normal file
4
roles/nextcloud/templates/notify_push_service.j2
Normal file
@ -0,0 +1,4 @@
|
||||
[program:notify_push]
|
||||
command=notify_push %(ENV_HOME)s/html/config/config.php
|
||||
autostart=yes
|
||||
autorestart=yes
|
||||
7
roles/nextcloud/templates/opcache.j2
Normal file
7
roles/nextcloud/templates/opcache.j2
Normal file
@ -0,0 +1,7 @@
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.interned_strings_buffer=8
|
||||
opcache.max_accelerated_files=10000
|
||||
opcache.memory_consumption=128
|
||||
opcache.save_comments=1
|
||||
opcache.revalidate_freq=1
|
||||
1
roles/nextcloud/templates/output_buffering.j2
Normal file
1
roles/nextcloud/templates/output_buffering.j2
Normal file
@ -0,0 +1 @@
|
||||
output_buffering=off
|
||||
23
roles/nextcloud/templates/update.j2
Normal file
23
roles/nextcloud/templates/update.j2
Normal file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
## Updater automatically works in maintenance:mode.
|
||||
## Use the Uberspace backup system for files and database if you need to roll back.
|
||||
## The Nextcloud updater creates backups only to safe base and app code data and config files
|
||||
## so it takes ressources you might need for your productive data.
|
||||
## Deactivate NC-updater Backups with --no-backup (works from 19.0.4, 18.0.10 and 17.0.10)
|
||||
php ~/html/updater/updater.phar -vv --no-backup --no-interaction
|
||||
|
||||
## re-enable maintenance mode for occ commands
|
||||
php ~/html/occ maintenance:mode --on
|
||||
|
||||
## database optimisations
|
||||
php ~/html/occ db:add-missing-primary-keys --no-interaction
|
||||
php ~/html/occ db:add-missing-columns --no-interaction
|
||||
php ~/html/occ db:add-missing-indices --no-interaction
|
||||
php ~/html/occ db:convert-filecache-bigint --no-interaction
|
||||
|
||||
php ~/html/occ app:update --all
|
||||
php ~/html/occ maintenance:mode --off
|
||||
/usr/sbin/restorecon -R ~/html
|
||||
|
||||
## If you have set up the notify_push service uncomment the following line by removing the #
|
||||
supervisorctl restart notify_push
|
||||
Reference in New Issue
Block a user