Unverified Commit b95a14f2 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

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
parent 2cb89c0a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ in

    services.phpfpm.pools.limesurvey = {
      inherit user group;
      phpPackage = pkgs.php81;
      phpPackage = pkgs.php83;
      phpEnv.DBENGINE = "${cfg.database.dbEngine}";
      phpEnv.LIMESURVEY_CONFIG = "${limesurveyConfig}";
      # App code cannot access credentials directly since the service starts
@@ -419,8 +419,8 @@ in
      environment.LIMESURVEY_CONFIG = limesurveyConfig;
      script = ''
        # update or install the database as required
        ${pkgs.php81}/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 updatedb || \
        ${pkgs.php83}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php install admin password admin admin@example.com verbose
      '';
      serviceConfig = {
        User = user;