diff --git a/machines/compute01/nextcloud.nix b/machines/compute01/nextcloud.nix index 84a0971..176985c 100644 --- a/machines/compute01/nextcloud.nix +++ b/machines/compute01/nextcloud.nix @@ -191,4 +191,12 @@ in { networking.hosts = { "129.199.146.148" = [ "s3.dgnum.eu" ]; }; dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; }; + + system.activationScripts = { + restart-nextcloud.text = '' + if [ "$(${pkgs.systemd}/bin/systemctl is-active phpfpm-nextcloud)" == "active" ]; then + ${pkgs.systemd}/bin/systemctl restart phpfpm-nextcloud + fi + ''; + }; }