diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index de6ebeaf5170..ed436dad32e0 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -1058,7 +1058,7 @@ in { '') [ "nix-apps" "apps" ]} # Do not install if already installed - if [[ ! -e ${datadir}/config/config.php ]]; then + if [[ ! -s ${datadir}/config/config.php ]]; then ${occInstallCmd} fi