Loading nixos/modules/services/web-apps/nextcloud.nix +16 −1 Original line number Diff line number Diff line Loading @@ -939,6 +939,7 @@ in { in { wantedBy = [ "multi-user.target" ]; wants = [ "nextcloud-update-db.service" ]; before = [ "phpfpm-nextcloud.service" ]; after = optional mysqlLocal "mysql.service" ++ optional pgsqlLocal "postgresql.service"; requires = optional mysqlLocal "mysql.service" ++ optional pgsqlLocal "postgresql.service"; Loading Loading @@ -997,7 +998,7 @@ in { after = [ "nextcloud-setup.service" ]; environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config"; serviceConfig = { Type = "oneshot"; Type = "exec"; User = "nextcloud"; ExecCondition = "${lib.getExe phpPackage} -f ${webroot}/occ status -e"; ExecStart = "${lib.getExe phpPackage} -f ${webroot}/cron.php"; Loading @@ -1013,6 +1014,20 @@ in { }; startAt = cfg.autoUpdateApps.startAt; }; nextcloud-update-db = { after = [ "nextcloud-setup.service" ]; environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config"; script = '' ${occ}/bin/nextcloud-occ db:add-missing-columns ${occ}/bin/nextcloud-occ db:add-missing-indices ${occ}/bin/nextcloud-occ db:add-missing-primary-keys ''; serviceConfig = { Type = "exec"; User = "nextcloud"; ExecCondition = "${lib.getExe phpPackage} -f ${webroot}/occ status -e"; }; }; }; services.phpfpm = { Loading Loading
nixos/modules/services/web-apps/nextcloud.nix +16 −1 Original line number Diff line number Diff line Loading @@ -939,6 +939,7 @@ in { in { wantedBy = [ "multi-user.target" ]; wants = [ "nextcloud-update-db.service" ]; before = [ "phpfpm-nextcloud.service" ]; after = optional mysqlLocal "mysql.service" ++ optional pgsqlLocal "postgresql.service"; requires = optional mysqlLocal "mysql.service" ++ optional pgsqlLocal "postgresql.service"; Loading Loading @@ -997,7 +998,7 @@ in { after = [ "nextcloud-setup.service" ]; environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config"; serviceConfig = { Type = "oneshot"; Type = "exec"; User = "nextcloud"; ExecCondition = "${lib.getExe phpPackage} -f ${webroot}/occ status -e"; ExecStart = "${lib.getExe phpPackage} -f ${webroot}/cron.php"; Loading @@ -1013,6 +1014,20 @@ in { }; startAt = cfg.autoUpdateApps.startAt; }; nextcloud-update-db = { after = [ "nextcloud-setup.service" ]; environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config"; script = '' ${occ}/bin/nextcloud-occ db:add-missing-columns ${occ}/bin/nextcloud-occ db:add-missing-indices ${occ}/bin/nextcloud-occ db:add-missing-primary-keys ''; serviceConfig = { Type = "exec"; User = "nextcloud"; ExecCondition = "${lib.getExe phpPackage} -f ${webroot}/occ status -e"; }; }; }; services.phpfpm = { Loading