Unverified Commit 0ef31de6 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

monica: pin php version to 8.3 (#394415)

parents f79c218e 69c26f33
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@ with lib; let
  user = cfg.user;
  group = cfg.group;

  php = lib.getExe pkgs.php83;

  # shell script for local administration
  artisan = pkgs.writeScriptBin "monica" ''
    #! ${pkgs.runtimeShell}
@@ -26,7 +28,7 @@ with lib; let
        exec "$@"
      fi
    }
    sudo ${pkgs.php}/bin/php artisan "$@"
    sudo ${php} artisan "$@"
  '';

  tlsEnabled = cfg.nginx.addSSL || cfg.nginx.forceSSL || cfg.nginx.onlySSL || cfg.nginx.enableACME;
@@ -419,8 +421,8 @@ in {
        fi

        # migrate & seed db
        ${pkgs.php}/bin/php artisan key:generate --force
        ${pkgs.php}/bin/php artisan setup:production -v --force
        ${php} artisan key:generate --force
        ${php} artisan setup:production -v --force
      '';
    };

@@ -432,7 +434,7 @@ in {
        Type = "oneshot";
        User = user;
        WorkingDirectory = "${monica}";
        ExecStart = "${pkgs.php}/bin/php ${monica}/artisan schedule:run -v";
        ExecStart = "${php} ${monica}/artisan schedule:run -v";
      };
    };

@@ -465,4 +467,3 @@ in {
    };
  };
}