diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e97c8c5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "authentik" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index f02ed33..9ed2164 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ Using [NextCloud](https://nextcloud.com/) - [preview generator](#preview-generator) - [repair tree](#repair-tree) - [Repair AppData Cache (Fix App Store 500 Error)](#repair-appdata-cache-fix-app-store-500-error) + - [force create indexes](#force-create-indexes) + - [Mimetype migrations available](#mimetype-migrations-available) - [delete file locks](#delete-file-locks) - [Setup and Deploy](#setup-and-deploy) - [App](#app) @@ -73,7 +75,7 @@ This procedure clears the broken cache and forces Nextcloud to rebuild it. ```bash # Enable maintenance mode -sudo -u www-data php occ maintenance:mode --on +su -s /bin/bash www-data -c "php occ maintenance:mode --on;" # Remove stale filecache entries (run inside MariaDB) mariadb -u root -p nextcloud -e "DELETE FROM oc_filecache WHERE path LIKE 'appdata_ocuihfjhxkga/appstore%';" @@ -82,10 +84,26 @@ mariadb -u root -p nextcloud -e "DELETE FROM oc_filecache WHERE path LIKE 'appda rm -rf /var/www/html/data/appdata_* # Disable maintenance mode -sudo -u www-data php occ maintenance:mode --off +su -s /bin/bash www-data -c "php occ maintenance:mode --off" # Rebuild appdata and caches -sudo -u www-data php occ maintenance:repair +su -s /bin/bash www-data -c "php occ maintenance:repair" +``` + +### force create indexes + +```bash + +# Rebuild appdata and caches +su -s /bin/bash www-data -c "php occ db:add-missing-indices" +``` + +### Mimetype migrations available + +```bash + +# Rebuild appdata and caches +su -s /bin/bash www-data -c "php occ maintenance:repair --include-expensive" ``` ### delete file locks diff --git a/deploy/app/helm-values.yaml b/deploy/app/helm-values.yaml index aa94e41..584724a 100644 --- a/deploy/app/helm-values.yaml +++ b/deploy/app/helm-values.yaml @@ -118,25 +118,26 @@ nextcloud: extraVolumeMounts: - name: mf-nextcloud - mountPath: /var/www/html/data/marcio.fernandes/files + mountPath: /mnt/users/marcio.fernandes - name: mf-documents - mountPath: /var/www/html/data/marcio.fernandes/files/Documents - + mountPath: /mnt/users/marcio.fernandes/Documents + - name: mf-photos - mountPath: /var/www/html/data/marcio.fernandes/files/Photos + mountPath: /mnt/users/marcio.fernandes/Photos - name: media-gaming - mountPath: /var/www/html/data/marcio.fernandes/files/Gaming + mountPath: /mnt/shared/Gaming - name: media-music - mountPath: /var/www/html/data/marcio.fernandes/files/Music + mountPath: /mnt/shared/Music - name: media-videos - mountPath: /var/www/html/data/marcio.fernandes/files/Videos + mountPath: /mnt/shared/Videos - name: it-storage - mountPath: /var/www/html/data/marcio.fernandes/files/NeirdStorage + mountPath: /mnt/shared/NerdStuff + configs: # appstore.override.config.php: |- #