nixos/limesurvey: use php83
This is what the version we currently have is packaged against[1]. No actual maintenance is done, this package will need a new person feeling responsible for this. [1] https://github.com/LimeSurvey/LimeSurvey/blob/6.10.2%2B250127/.github/workflows/main.yml#L20
This commit is contained in:
@@ -327,7 +327,7 @@ in
|
|||||||
|
|
||||||
services.phpfpm.pools.limesurvey = {
|
services.phpfpm.pools.limesurvey = {
|
||||||
inherit user group;
|
inherit user group;
|
||||||
phpPackage = pkgs.php81;
|
phpPackage = pkgs.php83;
|
||||||
phpEnv.DBENGINE = "${cfg.database.dbEngine}";
|
phpEnv.DBENGINE = "${cfg.database.dbEngine}";
|
||||||
phpEnv.LIMESURVEY_CONFIG = "${limesurveyConfig}";
|
phpEnv.LIMESURVEY_CONFIG = "${limesurveyConfig}";
|
||||||
# App code cannot access credentials directly since the service starts
|
# App code cannot access credentials directly since the service starts
|
||||||
@@ -419,8 +419,8 @@ in
|
|||||||
environment.LIMESURVEY_CONFIG = limesurveyConfig;
|
environment.LIMESURVEY_CONFIG = limesurveyConfig;
|
||||||
script = ''
|
script = ''
|
||||||
# update or install the database as required
|
# update or install the database as required
|
||||||
${pkgs.php81}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php updatedb || \
|
${pkgs.php83}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php updatedb || \
|
||||||
${pkgs.php81}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php install admin password admin admin@example.com verbose
|
${pkgs.php83}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php install admin password admin admin@example.com verbose
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = user;
|
User = user;
|
||||||
|
|||||||
Reference in New Issue
Block a user