Replaced nextcloud-application by nextcloud container name

This commit is contained in:
2025-08-11 10:41:06 +02:00
parent fe76fe1e62
commit ea0149b5d4
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