nixos/nextcloud: Also install when config.php exists but is empty

Running any occ command will create an empty config file automatically: f85154f1e1/lib/base.php (L194-L196)
This causes the current check to never execute the installation, in case any occ command was run before it (which itself fails because Nextcloud is not installled yet).
So any services which don't properly depend on nextcloud-setup.service cause Nextcloud to never be installed.
This commit is contained in:
provokateurin
2025-03-19 21:36:59 +01:00
parent d0b4d5a210
commit 34da0bd4fc

View File

@@ -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