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 15 15 "debian": {"flag_defaults": {"config": "/etc/grr/grr-server.yaml"}, 16 16 "config_opts": {"Config.writeback": "/etc/grr/server.local.yaml"} 17 17 }, 18 "macos": {"flag_defaults": {"config": "@@PREFIX@@/etc/grr/grr-server.yaml"}, 19 "config_opts": {"Config.writeback": "@@PREFIX@@/etc/grr/server.local.yaml"} 20 }, 18 21 } 19 22 20 23 … … 24 27 if platform.linux_distribution()[0].lower() in ["ubuntu", "debian"]: 25 28 return "debian" 26 29 30 if hasattr(platform, "mac_ver"): 31 if platform.mac_ver()[0]: 32 return "macos" 33 27 34 raise RuntimeError("Missing distro specific config. Please update " 28 35 "distro_entry.py.") 29 36