diff --git a/README.md b/README.md index a302563..cb5d7cc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ Welcome to public repository of [https://cloud.limbosolutions.com](https://cloud Using [NextCloud](https://nextcloud.com/) +- [command](#command) +- [maintenance mode](#maintenance-mode) + - [scan files](#scan-files) + - [repair tree](#repair-tree) + - [delete file locks](#delete-file-locks) - [Setup](#setup) - [kubernetes Namespace](#kubernetes-namespace) - [Add helm chart](#add-helm-chart) @@ -11,6 +16,34 @@ Using [NextCloud](https://nextcloud.com/) - [Install / Update](#install--update) - [backups](#backups) +## command + +## maintenance mode + +``` bash +su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --on;" +su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ maintenance:mode --off" +``` + +### scan files + +``` bash +su -s /bin/bash www-data -c "php -d memory_limit=-1 /var/www/html/occ files:scan --all" +``` + +### repair tree + +``` bash +su -s /bin/bash www-data -c "php occ files:repair-tree" +``` + +### delete file locks + + ``` bash + # execute on mariadb + DELETE FROM oc_file_locks WHERE 1; +``` + ## Setup ### kubernetes Namespace diff --git a/nextcloud/values.yaml b/nextcloud/values.yaml index 93685ad..ba1f592 100644 --- a/nextcloud/values.yaml +++ b/nextcloud/values.yaml @@ -54,6 +54,15 @@ persistence: # memory: 128Mi nextcloud: + extraVolumes: + - name: mf-documents + persistentVolumeClaim: + claimName: mf-documents-storage-limbosolutions-com + + extraVolumeMounts: + - name: mf-documents + mountPath: /mf.documents + configs: https.config.php: |-