phpipam: update php package

This commit is contained in:
Sean Buckley 2022-12-13 22:33:09 -05:00
parent 143464aa2b
commit 4d987c3eb1

View file

@ -47,6 +47,11 @@ in
default = { };
};
phpPackage = lib.mkOption {
type = lib.types.package;
default = pkgs.php;
};
};
config = lib.mkIf cfg.enable {
@ -59,9 +64,9 @@ in
systemd = {
services.phpipam-tasks = {
script = ''
${pkgs.php74}/bin/php ${phpipamHtdocs}/functions/scripts/pingCheck.php
${pkgs.php74}/bin/php ${phpipamHtdocs}/functions/scripts/discoveryCheck.php
${pkgs.php74}/bin/php ${phpipamHtdocs}/functions/scripts/remove_offline_addresses.php
${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/pingCheck.php
${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/discoveryCheck.php
${cfg.phpPackage}/bin/php ${phpipamHtdocs}/functions/scripts/remove_offline_addresses.php
'';
serviceConfig.User = "nginx";
startAt = "*:0/15";
@ -70,7 +75,7 @@ in
};
services = {
phpfpm.phpPackage = pkgs.php74;
phpfpm.phpPackage = cfg.phpPackage;
phpfpm.pools.www = {
user = "nginx";
group = "nginx";