Unverified Commit 34da0bd4 authored by provokateurin's avatar provokateurin
Browse files

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

Running any occ command will create an empty config file automatically: https://github.com/nextcloud/server/blob/f85154f1e1a3bfcf022cd1833a3028ea9c63380e/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.
parent d0b4d5a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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