mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/nextcloud: make all services run after nextcloud-setup
This commit is contained in:
parent
6be3ce36b6
commit
e54ddddd2a
1 changed files with 3 additions and 0 deletions
|
@ -649,6 +649,7 @@ in {
|
||||||
|
|
||||||
{ systemd.timers.nextcloud-cron = {
|
{ systemd.timers.nextcloud-cron = {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
|
after = [ "nextcloud-setup.service" ];
|
||||||
timerConfig.OnBootSec = "5m";
|
timerConfig.OnBootSec = "5m";
|
||||||
timerConfig.OnUnitActiveSec = "5m";
|
timerConfig.OnUnitActiveSec = "5m";
|
||||||
timerConfig.Unit = "nextcloud-cron.service";
|
timerConfig.Unit = "nextcloud-cron.service";
|
||||||
|
@ -839,12 +840,14 @@ in {
|
||||||
serviceConfig.User = "nextcloud";
|
serviceConfig.User = "nextcloud";
|
||||||
};
|
};
|
||||||
nextcloud-cron = {
|
nextcloud-cron = {
|
||||||
|
after = [ "nextcloud-setup.service" ];
|
||||||
environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config";
|
environment.NEXTCLOUD_CONFIG_DIR = "${datadir}/config";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
serviceConfig.User = "nextcloud";
|
serviceConfig.User = "nextcloud";
|
||||||
serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${cfg.package}/cron.php";
|
serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${cfg.package}/cron.php";
|
||||||
};
|
};
|
||||||
nextcloud-update-plugins = mkIf cfg.autoUpdateApps.enable {
|
nextcloud-update-plugins = mkIf cfg.autoUpdateApps.enable {
|
||||||
|
after = [ "nextcloud-setup.service" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
serviceConfig.ExecStart = "${occ}/bin/nextcloud-occ app:update --all";
|
serviceConfig.ExecStart = "${occ}/bin/nextcloud-occ app:update --all";
|
||||||
serviceConfig.User = "nextcloud";
|
serviceConfig.User = "nextcloud";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue