mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
Replaced nextcloud-application by nextcloud container name
This commit is contained in:
parent
fe76fe1e62
commit
ea0149b5d4
@ -31,7 +31,7 @@ if [ "$force_freeing" = true ]; then
|
|||||||
echo "cleaning up docker" &&
|
echo "cleaning up docker" &&
|
||||||
docker system prune -f || exit 3
|
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
|
if [ "$(docker ps -a -q -f name=$nextcloud_application_container)" ] ; then
|
||||||
echo "cleaning up docker nextcloud" &&
|
echo "cleaning up docker nextcloud" &&
|
||||||
docker exec -it -u www-data $nextcloud_application_container /var/www/html/occ files:cleanup || exit 4
|
docker exec -it -u www-data $nextcloud_application_container /var/www/html/occ files:cleanup || exit 4
|
||||||
|
@ -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:
|
Check if the user exists in the configured LDAP directory:
|
||||||
|
|
||||||
```bash
|
```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.
|
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:
|
Manually trigger a sync to register the user in the Nextcloud database:
|
||||||
|
|
||||||
```bash
|
```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:**
|
**Example:**
|
||||||
|
|
||||||
```bash
|
```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.
|
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:
|
To synchronize account data (display name, mail address, group memberships, etc.) for **all users** currently known to Nextcloud:
|
||||||
|
|
||||||
```bash
|
```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.
|
This step is especially useful after modifying LDAP attributes or group memberships, ensuring up-to-date data in the Nextcloud UI and permission system.
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
To update the Nextcloud container, execute the following commands on the server:
|
To update the Nextcloud container, execute the following commands on the server:
|
||||||
```bash
|
```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 COMPOSE_HTTP_TIMEOUT=600 &&
|
||||||
export DOCKER_CLIENT_TIMEOUT=600 &&
|
export DOCKER_CLIENT_TIMEOUT=600 &&
|
||||||
docker-compose down
|
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:
|
If Nextcloud remains in maintenance mode after the update, try the following:
|
||||||
```bash
|
```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
|
||||||
docker exec -it -u www-data nextcloud-application /var/www/html/occ upgrade
|
docker exec -it -u www-data nextcloud /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 --off
|
||||||
```
|
```
|
||||||
|
|
||||||
If the update process fails, execute:
|
If the update process fails, execute:
|
||||||
```bash
|
```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.
|
and disable any non-functioning apps.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user