forked from DGNum/infrastructure
feat(nextcloud): Restart nextcloud at activation time
This commit is contained in:
parent
09d341a098
commit
05e8e501f5
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue