Ticket #42692: patch-grr-lib-distro_entry.py.diff

File patch-grr-lib-distro_entry.py.diff, 839 bytes (added by jul_bsd@…, 11 years ago)
  • lib/distro_entry.py

    old new  
    1515    "debian": {"flag_defaults": {"config": "/etc/grr/grr-server.yaml"},
    1616               "config_opts": {"Config.writeback": "/etc/grr/server.local.yaml"}
    1717              },
     18    "macos": {"flag_defaults": {"config": "@@PREFIX@@/etc/grr/grr-server.yaml"},
     19               "config_opts": {"Config.writeback": "@@PREFIX@@/etc/grr/server.local.yaml"}
     20              },
    1821}
    1922
    2023
     
    2427    if platform.linux_distribution()[0].lower() in ["ubuntu", "debian"]:
    2528      return "debian"
    2629
     30  if hasattr(platform, "mac_ver"):
     31    if platform.mac_ver()[0]:
     32      return "macos"
     33
    2734  raise RuntimeError("Missing distro specific config. Please update "
    2835                     "distro_entry.py.")
    2936