Replaced nextcloud-application by nextcloud container name

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-11 10:41:06 +02:00
parent fe76fe1e62
commit ea0149b5d4
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 10 additions and 10 deletions

View File

@ -31,7 +31,7 @@ if [ "$force_freeing" = true ]; then
echo "cleaning up docker" &&
docker system prune -f || exit 3
nextcloud_application_container="nextcloud-application"
nextcloud_application_container="{{ applications | get_app_conf(application_id, 'docker.services.nextcloud.name', True) }}"
if [ "$(docker ps -a -q -f name=$nextcloud_application_container)" ] ; then
echo "cleaning up docker nextcloud" &&
docker exec -it -u www-data $nextcloud_application_container /var/www/html/occ files:cleanup || exit 4

View File

@ -9,7 +9,7 @@ To make LDAP users available for sharing **without requiring initial login**, fo
Check if the user exists in the configured LDAP directory:
```bash
docker exec -u www-data nextcloud-application php occ ldap:search <username>
docker exec -u www-data nextcloud php occ ldap:search <username>
```
If the user is found, proceed to the next step.
@ -19,13 +19,13 @@ If the user is found, proceed to the next step.
Manually trigger a sync to register the user in the Nextcloud database:
```bash
docker exec -u www-data nextcloud-application php occ ldap:check-user --update <username>
docker exec -u www-data nextcloud php occ ldap:check-user --update <username>
```
**Example:**
```bash
docker exec -u www-data nextcloud-application php occ ldap:check-user --update viktoriakaffanke
docker exec -u www-data nextcloud php occ ldap:check-user --update viktoriakaffanke
```
Once executed, the user becomes fully available in the system—for sharing, group membership, and permissions—even without logging in.
@ -35,7 +35,7 @@ Once executed, the user becomes fully available in the system—for sharing, gro
To synchronize account data (display name, mail address, group memberships, etc.) for **all users** currently known to Nextcloud:
```bash
docker exec -u www-data nextcloud-application php occ user:sync-account-data
docker exec -u www-data nextcloud php occ user:sync-account-data
```
This step is especially useful after modifying LDAP attributes or group memberships, ensuring up-to-date data in the Nextcloud UI and permission system.

View File

@ -2,7 +2,7 @@
To update the Nextcloud container, execute the following commands on the server:
```bash
docker exec -it -u www-data nextcloud-application /var/www/html/occ maintenance:mode --on &&
docker exec -it -u www-data nextcloud /var/www/html/occ maintenance:mode --on &&
export COMPOSE_HTTP_TIMEOUT=600 &&
export DOCKER_CLIENT_TIMEOUT=600 &&
docker-compose down
@ -25,14 +25,14 @@ docker-compose exec -it application top
If Nextcloud remains in maintenance mode after the update, try the following:
```bash
docker exec -it -u www-data nextcloud-application /var/www/html/occ maintenance:mode --on
docker exec -it -u www-data nextcloud-application /var/www/html/occ upgrade
docker exec -it -u www-data nextcloud-application /var/www/html/occ maintenance:mode --off
docker exec -it -u www-data nextcloud /var/www/html/occ maintenance:mode --on
docker exec -it -u www-data nextcloud /var/www/html/occ upgrade
docker exec -it -u www-data nextcloud /var/www/html/occ maintenance:mode --off
```
If the update process fails, execute:
```bash
docker exec -it -u www-data nextcloud-application /var/www/html/occ maintenance:repair --include-expensive
docker exec -it -u www-data nextcloud /var/www/html/occ maintenance:repair --include-expensive
```
and disable any non-functioning apps.