nixos/nextcloud: fail systemd-service if apps don't activate

This commit is contained in:
Robbert Gurdeep Singh 2021-09-30 22:38:45 +02:00 committed by Maximilian Bosch
parent 18b18929d7
commit 1852212872
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -757,7 +757,7 @@ in {
${optionalString (cfg.extraAppsEnable && cfg.extraApps != { }) ''
# Try to enable apps (don't fail when one of them cannot be enabled , eg. due to incompatible version)
${occ}/bin/nextcloud-occ app:enable ${builtins.concatStringsSep " " ( lib.mapAttrsToList (name: target: "${name}") cfg.extraApps)} || true
${occ}/bin/nextcloud-occ app:enable ${builtins.concatStringsSep " " ( lib.mapAttrsToList (name: target: "${name}") cfg.extraApps)}
''}
${occSetTrustedDomainsCmd}