feat(nextcloud): Restart nextcloud at activation time

This commit is contained in:
Tom Hubrecht 2023-12-20 13:48:26 +01:00
parent 09d341a098
commit 05e8e501f5

View file

@ -191,4 +191,12 @@ in {
networking.hosts = { "129.199.146.148" = [ "s3.dgnum.eu" ]; }; networking.hosts = { "129.199.146.148" = [ "s3.dgnum.eu" ]; };
dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; }; 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
'';
};
} }